Adds option for slow tests, e.g. satcomp, not to run

This commit is contained in:
wiltbemj
2025-04-25 14:46:57 -06:00
parent 4783483f22
commit a301a05586
10 changed files with 17 additions and 2 deletions

View File

@@ -92,4 +92,13 @@ def mix_file(tmpdir):
ftag = "test"
file_path = fdir.join("test.mix.h5")
file_path = write_mix_h5(file_path)
return file_path
return file_path
def pytest_addoption(parser):
parser.addoption(
"--runslow", action="store_true", default=False, help="run tests marked as slow"
)
def pytest_runtest_setup(item):
if "slow" in item.keywords and not item.config.getoption("--runslow"):
pytest.skip("need --runslow option to run")