We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f2c4e commit 7f2e88dCopy full SHA for 7f2e88d
pytest_flask/plugin.py
@@ -113,6 +113,18 @@ def test_something(app):
113
monkeypatch.setitem(app.config, key.upper(), value)
114
115
116
+def pytest_addoption(parser):
117
+ group = parser.getgroup('flask')
118
+ group.addoption('--start-live-server',
119
+ action="store_true", dest="start_live_server", default=True,
120
+ help="start server automatically when live_server "
121
+ "fixture is applyed.")
122
+ group.addoption('--no-start-live-server',
123
+ action="store_false", dest="start_live_server",
124
+ help="don't start server automatically when live_server "
125
126
+
127
128
def pytest_configure(config):
129
config.addinivalue_line(
130
'markers',
0 commit comments