projects
/
pgwui_develop
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f784b
)
Add more docs on "late fakes"
author
Karl O. Pinc
<kop@karlpinc.com>
Wed, 20 Mar 2024 17:46:06 +0000
(12:46 -0500)
committer
Karl O. Pinc
<kop@karlpinc.com>
Wed, 20 Mar 2024 17:46:06 +0000
(12:46 -0500)
src/pgwui_develop/testing.py
patch
|
blob
|
history
diff --git
a/src/pgwui_develop/testing.py
b/src/pgwui_develop/testing.py
index bada279850bfc16e55763dcfc1acef6753d0928c..17f5b729fdf717dbcb860b97a98fe777ee6e1e10 100644
(file)
--- 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):