Skip to content

Commit

Permalink
add antismash_gff_builder unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisAta committed Aug 23, 2024
1 parent efe1799 commit 7cf2dcc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/fixtures/misc/test_antismash.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
- name: antismash_gff_builder test_wrong_args
tags:
- antismash_gff_builder
exit_code: 2
command: python -m mgnify_pipelines_toolkit.analysis.assembly.antismash_gff_builder --chromosome X
stderr:
contains:
- "antismash_gff_builder.py: error: the following arguments are required: -i/--input, -o/--output"
- name: antismash_gff_builder test_correct_args
tags:
- antismash_gff_builder
command: python -m mgnify_pipelines_toolkit.analysis.assembly.antismash_gff_builder -i tests/fixtures/misc/test_antismash.json -o test.gff --cds_tag ID
files:
- path: "test.gff"
md5sum: 381a0c0d7e221f8817d84f36153444c4
- name: antismash_gff_builder test_correct_args_wrong_cds_tag
tags:
- antismash_gff_builder
exit_code: 1
command: python -m mgnify_pipelines_toolkit.analysis.assembly.antismash_gff_builder -i tests/fixtures/misc/test_antismash.json -o test.gff --cds_tag IDD
stderr:
contains:
- "KeyError: 'IDD'"

0 comments on commit 7cf2dcc

Please sign in to comment.