Skip to content

Commit 81a35cf

Browse files
authored
Merge pull request #184 from nicoddemus/release-3.1.0
Add CHANGELOG and README about other-scoped mocker fixtures
2 parents e43552a + f1759fd commit 81a35cf

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CHANGELOG.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
3.1.0 (2020-04-18)
2+
------------------
3+
4+
* New mocker fixtures added that allow using mocking functionality in other scopes:
5+
6+
* ``class_mocker``
7+
* ``module_mocker``
8+
* ``package_mocker``
9+
* ``session_mocker``
10+
11+
Added by `@scorphus`_ in `#182`_.
12+
13+
.. _@scorphus: https://github.com/scorphus
14+
.. _#182: https://github.com/pytest-dev/pytest-mock/pull/182
15+
116
3.0.0 (2020-03-31)
217
------------------
318

README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ Also, as a convenience, these names from the ``mock`` module are accessible dire
8282
* `sentinel <https://docs.python.org/3/library/unittest.mock.html#sentinel>`_ *(Version 1.2)*
8383
* `mock_open <https://docs.python.org/3/library/unittest.mock.html#mock-open>`_
8484

85+
It is also possible to use mocking functionality from fixtures of other scopes using
86+
the appropriate mock fixture:
87+
88+
* ``class_mocker``
89+
* ``module_mocker``
90+
* ``package_mocker``
91+
* ``session_mocker``
8592

8693
Spy
8794
---

0 commit comments

Comments
 (0)