In the CI
|
def test_version(script_runner): |
|
command = "pyhf-validation --version" |
|
start = time.time() |
|
ret = script_runner.run(*shlex.split(command)) |
|
end = time.time() |
|
elapsed = end - start |
|
assert ret.success |
|
assert hfval.__version__ in ret.stdout |
|
assert ret.stderr == "" |
|
# make sure it took less than a second |
|
assert elapsed < 1.0 |
will often fail as it will take longer than 1 second for test_version to complete but only on MacOS. I am not sure why it is only MacOS, but this should be resolved.
c.f. PR #9
In the CI
pyhf-validation/tests/test_cli.py
Lines 6 to 16 in a75fe22
will often fail as it will take longer than 1 second for
test_versionto complete but only on MacOS. I am not sure why it is only MacOS, but this should be resolved.c.f. PR #9