mirror of
https://github.com/JHUAPL/kaipy.git
synced 2026-01-09 22:37:55 -05:00
Adds option for slow tests, e.g. satcomp, not to run
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user