Skip to content

Commit

Permalink
docs(monkeypatch): Fix autodoc reference links
Browse files Browse the repository at this point in the history
Since pytest-dev#8006 MonkeyPatch is publicly available on pytest.MonkeyPatch.
  • Loading branch information
tony committed Jun 1, 2022
1 parent 130c954 commit b5e966a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/en/how-to/monkeypatch.rst
Expand Up @@ -3,7 +3,7 @@
How to monkeypatch/mock modules and environments
================================================================

.. currentmodule:: _pytest.monkeypatch
.. currentmodule:: pytest

Sometimes tests need to invoke functionality which depends
on global settings or which invokes code which cannot be easily
Expand Down Expand Up @@ -436,7 +436,7 @@ separate fixtures for each potential mock and reference them in the needed tests
_ = app.create_connection_string()
.. currentmodule:: _pytest.monkeypatch
.. currentmodule:: pytest

API Reference
-------------
Expand Down

0 comments on commit b5e966a

Please sign in to comment.