Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0.x] docs(monkeypatch): Fix autodoc reference links #10016

Merged
merged 2 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ Tom Dalton
Tom Viner
Tomáš Gavenčiak
Tomer Keren
Tony Narlock
Tor Colvin
Trevor Bekolay
Tyler Goodlet
Expand Down
4 changes: 2 additions & 2 deletions doc/en/how-to/monkeypatch.rst
Original file line number Diff line number Diff line change
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
1 change: 1 addition & 0 deletions extra/setup-py.test/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys

from distutils.core import setup

if __name__ == "__main__":
Expand Down