mirror of
https://github.com/chatmail/relay.git
synced 2026-05-16 15:48:57 +00:00
add marker dynamically to allow "pytest" to execute nicely at repo root without warnings
This commit is contained in:
@@ -18,6 +18,9 @@ def pytest_addoption(parser):
|
|||||||
|
|
||||||
def pytest_configure(config):
|
def pytest_configure(config):
|
||||||
config._benchresults = {}
|
config._benchresults = {}
|
||||||
|
config.addinivalue_line(
|
||||||
|
"markers", "slow: mark test to require --slow option to run"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def pytest_runtest_setup(item):
|
def pytest_runtest_setup(item):
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
addopts = -vrsx --strict-markers
|
addopts = -vrsx --strict-markers
|
||||||
markers = slow: mark test as slow (requires --slow option to run)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user