Skip to content

Commit b5e966a

Browse files
committed
docs(monkeypatch): Fix autodoc reference links
Since pytest-dev#8006 MonkeyPatch is publicly available on pytest.MonkeyPatch.
1 parent 130c954 commit b5e966a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/how-to/monkeypatch.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
How to monkeypatch/mock modules and environments
44
================================================================
55

6-
.. currentmodule:: _pytest.monkeypatch
6+
.. currentmodule:: pytest
77

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

441441
API Reference
442442
-------------

0 commit comments

Comments
 (0)