summaryrefslogtreecommitdiff
path: root/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'mock.py')
-rw-r--r--mock.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mock.py b/mock.py
index 6ae565b..cf38238 100644
--- a/mock.py
+++ b/mock.py
@@ -2304,6 +2304,9 @@ class PropertyMock(Mock):
Fetching a `PropertyMock` instance from an object calls the mock, with
no args. Setting it calls the mock with the value being set.
"""
+ def _get_child_mock(self, **kwargs):
+ return MagicMock(**kwargs)
+
def __get__(self, obj, obj_type):
return self()
def __set__(self, obj, val):