diff --git a/CHANGELOG.md b/CHANGELOG.md index acc359d9..d9ec6de8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # next (unreleased) -* Bump flake8, flake8-comprehensions and flake8-bugbear. (Sebastian Csar, -#341). +* Bump flake8, flake8-comprehensions and flake8-bugbear (Sebastian Csar, #341). * Switch to tomllib/tomli to support heterogeneous arrays (Sebastian Csar, #340). +* Provide whitelist parity for `MagicMock` and `Mock` (maxrake). # 2.10 (2023-10-06) diff --git a/vulture/whitelists/unittest_whitelist.py b/vulture/whitelists/unittest_whitelist.py index 4df8f6e8..d68e0b55 100644 --- a/vulture/whitelists/unittest_whitelist.py +++ b/vulture/whitelists/unittest_whitelist.py @@ -14,3 +14,6 @@ mock.Mock.return_value mock.Mock.side_effect + +mock.MagicMock.return_value +mock.MagicMock.side_effect