Ignores version file checking if testing for error

This commit is contained in:
Chris Cheshire 2022-01-28 09:14:47 +00:00
parent b83db65f33
commit 1abcc93837

View file

@ -16,7 +16,8 @@ def _get_workflow_names():
# test_config = yaml.safe_load(f.read_text())
test_config = yaml.load(f.read_text(), Loader=yaml.BaseLoader)
for workflow in test_config:
yield workflow["name"]
if 'exit_code' not in workflow:
yield workflow["name"]
@pytest.mark.workflow(*_get_workflow_names())