File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -210,10 +210,10 @@ Markers
210
210
on `what markers are `_ and for notes on `using them `_.
211
211
212
212
213
- ``pytest.mark.app `` - pass options to your application config
213
+ ``pytest.mark.options `` - pass options to your application config
214
214
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
215
215
216
- .. py :function :: pytest.mark.app (** kwargs)
216
+ .. py :function :: pytest.mark.options (** kwargs)
217
217
218
218
The mark uses to pass options to your application config.
219
219
@@ -225,7 +225,7 @@ on `what markers are`_ and for notes on `using them`_.
225
225
226
226
.. code :: python
227
227
228
- @pytest.mark.app (debug = False )
228
+ @pytest.mark.options (debug = False )
229
229
def test_app (app ):
230
230
assert not app.debug, ' Ensure the app not in debug mode'
231
231
Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ def teardown():
95
95
96
96
@pytest .fixture (autouse = True )
97
97
def _configure_application (request , monkeypatch ):
98
- """Use `pytest.mark.app ` decorator to pass options to your application
98
+ """Use `pytest.mark.options ` decorator to pass options to your application
99
99
factory::
100
100
101
- @pytest.mark.app (debug=False)
101
+ @pytest.mark.options (debug=False)
102
102
def test_something(app):
103
103
assert not app.debug, 'the application works not in debug mode!'
104
104
Original file line number Diff line number Diff line change 21
21
- ``accept_json``, ``accept_jsonp``, ``accept_any`` - accept headers
22
22
suitable to use as parameters in ``client``.
23
23
24
- To pass options to your application use the ``pytest.mark.app `` marker:
24
+ To pass options to your application use the ``pytest.mark.options `` marker:
25
25
26
26
.. code:: python
27
27
28
- @pytest.mark.app (debug=False)
28
+ @pytest.mark.options (debug=False)
29
29
def test_app(app):
30
30
assert not app.debug, 'Ensure the app not in debug mode'
31
31
You can’t perform that action at this time.
0 commit comments