Home | History | Annotate | Download | only in pymock

Lines Matching refs:DEFAULT

21     'DEFAULT',
363 DEFAULT = sentinel.DEFAULT
458 _mock_return_value = DEFAULT
562 if ret is DEFAULT:
853 If `any_order` is False (the default) then the calls must be
897 By default child mocks will be the same type as the parent.
933 def __init__(self, spec=None, side_effect=None, return_value=DEFAULT,
1006 ret_val = DEFAULT
1019 if ret_val is DEFAULT:
1023 self._mock_return_value is DEFAULT):
1025 if ret_val is DEFAULT:
1053 arguments as the mock, and unless it returns `DEFAULT`, the return
1063 default
1121 if new is not DEFAULT:
1197 elif patching.new is DEFAULT:
1230 original = DEFAULT
1236 original = getattr(target, name, DEFAULT)
1240 if not self.create and original is DEFAULT:
1270 if new is DEFAULT and autospec is None:
1286 if original is DEFAULT:
1334 # spec is ignored, new *must* be default, spec_set is treated
1337 if new is not DEFAULT:
1342 if original is DEFAULT:
1362 if self.new is DEFAULT:
1366 if patching.new is DEFAULT:
1378 if self.is_local and self.temp_original is not DEFAULT:
1419 target, attribute, new=DEFAULT, spec=None,
1424 patch.object(target, attribute, new=DEFAULT, spec=None, create=False,
1455 Use `DEFAULT` as the value if you want `patch.multiple` to create
1496 target, new=DEFAULT, spec=None, create=False,
1524 that will be called to create the `new` object. By default `MagicMock` is
1538 By default `patch` will fail to replace attributes that don't exist. If
1543 default because it can be dangerous. With it switched on you can write
1550 By default this is `test`, which matches the way `unittest` finds tests.
1795 if ret_val is not DEFAULT:
1802 if self.__ne__._mock_return_value is not DEFAULT:
1803 return DEFAULT
1810 if ret_val is DEFAULT:
1826 fixed = _return_values.get(name, DEFAULT)
1827 if fixed is not DEFAULT:
1892 MagicMock is a subclass of Mock with default implementations
2264 result = klass.__dict__.get(entry, DEFAULT)
2265 if result is DEFAULT:
2325 default) then a `MagicMock` will be created for you, with the API limited
2329 This is an empty string by default.