From b5e966ad8f3b37192a4efafd29a23c2373acf5a8 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Wed, 1 Jun 2022 14:00:27 -0500 Subject: [PATCH] docs(monkeypatch): Fix autodoc reference links Since #8006 MonkeyPatch is publicly available on pytest.MonkeyPatch. --- doc/en/how-to/monkeypatch.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/how-to/monkeypatch.rst b/doc/en/how-to/monkeypatch.rst index 9c61233f7..0ae878240 100644 --- a/doc/en/how-to/monkeypatch.rst +++ b/doc/en/how-to/monkeypatch.rst @@ -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 @@ -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 -------------