mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Add manual Nostr index size test
This commit is contained in:
@@ -14,10 +14,17 @@ def pytest_addoption(parser: pytest.Parser) -> None:
|
||||
default=False,
|
||||
help="run stress tests",
|
||||
)
|
||||
parser.addoption(
|
||||
"--desktop",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="run desktop-only tests",
|
||||
)
|
||||
|
||||
|
||||
def pytest_configure(config: pytest.Config) -> None:
|
||||
config.addinivalue_line("markers", "stress: long running stress tests")
|
||||
config.addinivalue_line("markers", "desktop: desktop only tests")
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(
|
||||
@@ -30,3 +37,9 @@ def pytest_collection_modifyitems(
|
||||
for item in items:
|
||||
if "stress" in item.keywords:
|
||||
item.add_marker(skip_stress)
|
||||
|
||||
if not config.getoption("--desktop"):
|
||||
skip_desktop = pytest.mark.skip(reason="need --desktop option to run")
|
||||
for item in items:
|
||||
if "desktop" in item.keywords:
|
||||
item.add_marker(skip_desktop)
|
||||
|
Reference in New Issue
Block a user