Skip to content

Commit e54ce9e

Browse files
authored
Move flaky option to top level (#2642)
* Add flaky option on top level * Add newsfragment
1 parent 12b649d commit e54ce9e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

newsfragments/2642.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move ``flaky`` option to top-level conftest.py

tests/conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ def address_conversion_func(request):
2020
@pytest.fixture()
2121
def open_port():
2222
return get_open_port()
23+
24+
25+
def pytest_addoption(parser):
26+
parser.addoption("--flaky", action="store_true")

tests/integration/conftest.py

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
# --- integration test configurations --- #
2222

2323

24-
def pytest_addoption(parser):
25-
parser.addoption("--flaky", action="store_true")
26-
27-
2824
def pytest_collection_modifyitems(items, config):
2925
"""
3026
It is ideal to keep this configuration as simple as possible so that we don't

0 commit comments

Comments
 (0)