From f1759fd2a042dde40a71afa84c7fd08f1e1744da Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 18 Apr 2020 12:06:10 -0300 Subject: [PATCH] Add CHANGELOG and README about other-scoped mocker fixtures --- CHANGELOG.rst | 15 +++++++++++++++ README.rst | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6f66aa1..c750cef 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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) ------------------ diff --git a/README.rst b/README.rst index dbee6ca..73e589a 100644 --- a/README.rst +++ b/README.rst @@ -82,6 +82,13 @@ Also, as a convenience, these names from the ``mock`` module are accessible dire * `sentinel `_ *(Version 1.2)* * `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 ---