-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hamronization/abricate (#4851)
* abricate --migrate_pytest * Complete nf-test + add stub * Fix linting * Fix linting * Update test names * Update stub test * Stage proper input files for stub tests * Remove `echo <command>` from main.nf
- Loading branch information
Showing
10 changed files
with
154 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::hamronization=1.1.1 | ||
- bioconda::hamronization=1.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
nextflow_process { | ||
|
||
name "Test Process HAMRONIZATION_ABRICATE" | ||
script "../main.nf" | ||
process "HAMRONIZATION_ABRICATE" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "hamronization" | ||
tag "hamronization/abricate" | ||
|
||
test("hamronization/abricate - bacteroides_fragilis - genome_abricate_tsv") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:"test" ], file(params.test_data['bacteroides_fragilis']['hamronization']['genome_abricate_tsv'], checkIfExists: true) ] | ||
input[1] = 'tsv' | ||
input[2] = '1.0.1' | ||
input[3] = '2021-Mar-27' | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
test("hamronization/abricate - bacteroides_fragilis - genome_abricate_tsv - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:"test" ], file(params.test_data['bacteroides_fragilis']['hamronization']['genome_abricate_tsv'], checkIfExists: true) ] | ||
input[1] = 'tsv' | ||
input[2] = '1.0.1' | ||
input[3] = '2021-Mar-27' | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
modules/nf-core/hamronization/abricate/tests/main.nf.test.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
hamronization/abricate: | ||
- "modules/nf-core/hamronization/abricate/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.