Skip to content

Commit

Permalink
Add CHANGELOG and README about other-scoped mocker fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Apr 18, 2020
1 parent e43552a commit f1759fd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
3.1.0 (2020-04-18)
------------------

* New mocker fixtures added that allow using mocking functionality in other scopes:

* ``class_mocker``
* ``module_mocker``
* ``package_mocker``
* ``session_mocker``

Added by `@scorphus`_ in `#182`_.

.. _@scorphus: https://github.com/scorphus
.. _#182: https://github.com/pytest-dev/pytest-mock/pull/182

3.0.0 (2020-03-31)
------------------

Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ Also, as a convenience, these names from the ``mock`` module are accessible dire
* `sentinel <https://docs.python.org/3/library/unittest.mock.html#sentinel>`_ *(Version 1.2)*
* `mock_open <https://docs.python.org/3/library/unittest.mock.html#mock-open>`_

It is also possible to use mocking functionality from fixtures of other scopes using
the appropriate mock fixture:

* ``class_mocker``
* ``module_mocker``
* ``package_mocker``
* ``session_mocker``

Spy
---
Expand Down

0 comments on commit f1759fd

Please sign in to comment.