mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Fix for version file output check when performing an expected error test (#1242)
* hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Ignores version file checking if testing for error * Added comment Co-authored-by: Sviatoslav Sidorov <sviatoslav.sidorov@crick.ac.uk> Co-authored-by: Svyatoslav Sidorov <svet.sidorov@gmail.com> Co-authored-by: Tamara Hodgetts <hodgett@crick.ac.uk>
This commit is contained in:
parent
a45e030166
commit
f3a405e4f2
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@ def _get_workflow_names():
|
||||||
# test_config = yaml.safe_load(f.read_text())
|
# test_config = yaml.safe_load(f.read_text())
|
||||||
test_config = yaml.load(f.read_text(), Loader=yaml.BaseLoader)
|
test_config = yaml.load(f.read_text(), Loader=yaml.BaseLoader)
|
||||||
for workflow in test_config:
|
for workflow in test_config:
|
||||||
yield workflow["name"]
|
# https://github.com/nf-core/modules/pull/1242 - added to cover tests
|
||||||
|
# that expect an error and therefore will not generate a versions.yml
|
||||||
|
if 'exit_code' not in workflow:
|
||||||
|
yield workflow["name"]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.workflow(*_get_workflow_names())
|
@pytest.mark.workflow(*_get_workflow_names())
|
||||||
|
|
Loading…
Reference in a new issue