There are whitelist entries for the return_value and side_effect
attributes of the unittest.mock.Mock class. This change seeks to
provide parity for the unittest.mock.MagicMock class, which is just a
subclass of Mock but with default implementations of most of the magic
methods.
Description
There are whitelist entries for the
return_value
andside_effect
attributes of theunittest.mock.Mock
class. This change seeks to provide parity for theunittest.mock.MagicMock
class, which is just a subclass ofMock
but with default implementations of most of the magic methods.Standard library reference: https://docs.python.org/3/library/unittest.mock.html#magic-mock
Checklist:
tox -e fix-style
to format my code and checked the result withtox -e style
.