File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed 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
54
54
will delete the method ``request.session.Session.request ``
55
55
so that any attempts within tests to create http requests will fail.
56
56
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
-
77
57
78
58
Method reference of the monkeypatch fixture
79
59
-------------------------------------------
You can’t perform that action at this time.
0 commit comments