Add more docs on "late fakes"
authorKarl O. Pinc <kop@karlpinc.com>
Wed, 20 Mar 2024 17:46:06 +0000 (12:46 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Wed, 20 Mar 2024 17:46:06 +0000 (12:46 -0500)
src/pgwui_develop/testing.py

index bada279850bfc16e55763dcfc1acef6753d0928c..17f5b729fdf717dbcb860b97a98fe777ee6e1e10 100644 (file)
@@ -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):