You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocks can no longer be used as the specs for other Mocks. As a result, an already-mocked object cannot have an attribute mocked using `autospec=True` or be the subject of a `create_autospec(...)` call. This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions (e.g. assert_called_once_with) will unconditionally pass.
1
+
Mocks can no longer be used as the specs for other Mocks. As a result, an
2
+
already-mocked object cannot have an attribute mocked using ``autospec=True``
3
+
or be the subject of a ``create_autospec(...)`` call. This can uncover bugs in
4
+
tests since these Mock-derived Mocks will always pass certain tests (e.g.
5
+
:func:`isinstance`) and builtin assert functions (e.g. assert_called_once_with)
0 commit comments