Skip to content

Commit 26d4dc9

Browse files
committed
move marker to pyproject.toml
1 parent 03f7be2 commit 26d4dc9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

py/conftest.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ def pytest_addoption(parser):
8585
)
8686

8787

88-
def pytest_configure(config):
89-
"""Add custom markers for tests."""
90-
config.addinivalue_line(
91-
"markers", "webextension: mark test as requiring webextension support (for chromium based browsers)"
92-
)
93-
94-
9588
def pytest_ignore_collect(collection_path, config):
9689
drivers_opt = config.getoption("drivers")
9790
_drivers = set(drivers).difference(drivers_opt or drivers)

py/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ markers = [
8383
"xfail_safari: Tests expected to fail in Safari",
8484
"xfail_webkitgtk: Tests expected to fail in WebKitGTK",
8585
"xfail_wpewebkit: Tests expected to fail in WPEWebKit",
86-
"no_driver_after_test: If there are no drivers after the test it will create a new one."
86+
"no_driver_after_test: If there are no drivers after the test it will create a new one.",
87+
"webextension: Tests that require webextension support (adds special flags for Chrome/Edge)"
8788
]
8889
python_files = ["test_*.py", "*_test.py", "*_tests.py"]
8990
testpaths = ["test"]

0 commit comments

Comments
 (0)