From a35beb4e4ec4686da0f305a65383f935dbd510cb Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 20 Mar 2024 12:46:06 -0500 Subject: [PATCH] Add more docs on "late fakes" --- src/pgwui_develop/testing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pgwui_develop/testing.py b/src/pgwui_develop/testing.py index bada279..17f5b72 100644 --- a/src/pgwui_develop/testing.py +++ b/src/pgwui_develop/testing.py @@ -149,7 +149,9 @@ def late_instance_mock_fixture(method, ignore_deprecation=True): The function returned by the fixture takes the class instance to be monkeypatched. - Useful to monkeypatch classes produced by fixtures. + Useful to monkeypatch classes produced by fixtures or "incomplete" + classes or modules that do not have all the magic methods needed + by the other mock approaches. ''' @ignore_deprecation_warnings(ignore_deprecation) def make_mocked(cls): -- 2.34.1