Skip to content

Commit

Permalink
Move flaky option to top level (#2642)
Browse files Browse the repository at this point in the history
* Add flaky option on top level

* Add newsfragment
  • Loading branch information
kclowes authored Sep 12, 2022
1 parent 12b649d commit e54ce9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions newsfragments/2642.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move ``flaky`` option to top-level conftest.py
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ def address_conversion_func(request):
@pytest.fixture()
def open_port():
return get_open_port()


def pytest_addoption(parser):
parser.addoption("--flaky", action="store_true")
4 changes: 0 additions & 4 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
# --- integration test configurations --- #


def pytest_addoption(parser):
parser.addoption("--flaky", action="store_true")


def pytest_collection_modifyitems(items, config):
"""
It is ideal to keep this configuration as simple as possible so that we don't
Expand Down

0 comments on commit e54ce9e

Please sign in to comment.