Skip to content

Commit

Permalink
Merge pull request #318 from willfrey/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus authored Sep 28, 2022
2 parents 798f07e + 64a34f6 commit 1e2001f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Releases
========

3.9.0 (2022-09-28)
------------------

* Expose ``NonCallableMagicMock`` via the ``mocker`` fixture (`#318`_).

.. _#318: https://github.com/pytest-dev/pytest-mock/pull/318

3.8.2 (2022-07-05)
------------------

Expand Down
1 change: 1 addition & 0 deletions src/pytest_mock/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def __init__(self, config: Any) -> None:
self.Mock = mock_module.Mock
self.MagicMock = mock_module.MagicMock
self.NonCallableMock = mock_module.NonCallableMock
self.NonCallableMagicMock = mock_module.NonCallableMagicMock
self.PropertyMock = mock_module.PropertyMock
if hasattr(mock_module, "AsyncMock"):
self.AsyncMock = mock_module.AsyncMock
Expand Down
1 change: 1 addition & 0 deletions tests/test_pytest_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def test_mock_patch_dict_resetall(mocker: MockerFixture) -> None:
"MagicMock",
"Mock",
"mock_open",
"NonCallableMagicMock",
"NonCallableMock",
"PropertyMock",
"sentinel",
Expand Down

0 comments on commit 1e2001f

Please sign in to comment.