summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2016-08-25 21:50:57 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2016-08-25 21:50:57 -0300
commite92d373460397caebdf318a2faab0cc5c3678389 (patch)
tree4dfbeb44542ef5ab32300a0e2a9d4fa0797deefc /doc
parent9c45d6cd83fdc7d336377526bdfb6fc0123d29c0 (diff)
downloadpytest-e92d373460397caebdf318a2faab0cc5c3678389.tar.gz
Remove example of "monkeypatch" used in session scope
This is a leftover when invocation-scoped fixtures were pulled back. Fix #1872
Diffstat (limited to 'doc')
-rw-r--r--doc/en/monkeypatch.rst20
1 files changed, 0 insertions, 20 deletions
diff --git a/doc/en/monkeypatch.rst b/doc/en/monkeypatch.rst
index 229e1d982..07a636e9d 100644
--- a/doc/en/monkeypatch.rst
+++ b/doc/en/monkeypatch.rst
@@ -54,26 +54,6 @@ This autouse fixture will be executed for each test function and it
will delete the method ``request.session.Session.request``
so that any attempts within tests to create http requests will fail.
-example: setting an environment variable for the test session
--------------------------------------------------------------
-
-If you would like for an environment variable to be
-configured for the entire test session, you can add this to your
-top-level ``conftest.py`` file:
-
-.. code-block:: python
-
- # content of conftest.py
- @pytest.fixture(scope='session', autouse=True)
- def enable_debugging(monkeypatch):
- monkeypatch.setenv("DEBUGGING_VERBOSITY", "4")
-
-This auto-use fixture will set the ``DEBUGGING_VERBOSITY`` environment variable for
-the entire test session.
-
-Note that the ability to use a ``monkeypatch`` fixture from a ``session``-scoped
-fixture was added in pytest-3.0.
-
Method reference of the monkeypatch fixture
-------------------------------------------