File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,26 +54,6 @@ This autouse fixture will be executed for each test function and it
5454will delete the method ``request.session.Session.request ``
5555so that any attempts within tests to create http requests will fail.
5656
57- example: setting an environment variable for the test session
58- -------------------------------------------------------------
59-
60- If you would like for an environment variable to be
61- configured for the entire test session, you can add this to your
62- top-level ``conftest.py `` file:
63-
64- .. code-block :: python
65-
66- # content of conftest.py
67- @pytest.fixture (scope = ' session' , autouse = True )
68- def enable_debugging (monkeypatch ):
69- monkeypatch.setenv(" DEBUGGING_VERBOSITY" , " 4" )
70-
71- This auto-use fixture will set the ``DEBUGGING_VERBOSITY `` environment variable for
72- the entire test session.
73-
74- Note that the ability to use a ``monkeypatch `` fixture from a ``session ``-scoped
75- fixture was added in pytest-3.0.
76-
7757
7858Method reference of the monkeypatch fixture
7959-------------------------------------------
You can’t perform that action at this time.
0 commit comments