add marker dynamically to allow "pytest" to execute nicely at repo root without warnings

This commit is contained in:
holger krekel
2023-10-20 22:45:11 +02:00
parent d2af9df8f9
commit cbbcf3cbca
2 changed files with 3 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ def pytest_addoption(parser):
def pytest_configure(config):
config._benchresults = {}
config.addinivalue_line(
"markers", "slow: mark test to require --slow option to run"
)
def pytest_runtest_setup(item):

View File

@@ -1,3 +1,2 @@
[pytest]
addopts = -vrsx --strict-markers
markers = slow: mark test as slow (requires --slow option to run)