2.0.0 (2020-01-04)
Breaking Changes
-
mocker.spyattributes for tracking returned values and raised exceptions of its spied functions
are now calledspy_returnandspy_exception, instead of reusing the existing
MagicMockattributesreturn_valueandside_effect.Version
1.13introduced a serious regression: after a spied function usingmocker.spy
raises an exception, further calls to the spy will not call the spied function,
always raising the first exception instead: assigning toside_effectcauses
unittest.mockto behave this way (#175). -
The deprecated
mockalias to themockerfixture has finally been removed.