Add manual Nostr index size test

This commit is contained in:
thePR0M3TH3AN
2025-07-02 12:04:16 -04:00
parent b012246def
commit c6f4d185da
3 changed files with 77 additions and 0 deletions

View File

@@ -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)