From: Karl O. Pinc Date: Wed, 20 Mar 2024 17:46:06 +0000 (-0500) Subject: Add more docs on "late fakes" X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=a35beb4e4ec4686da0f305a65383f935dbd510cb;p=pgwui_develop Add more docs on "late fakes" --- 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):