Skip to content

Commit

Permalink
add plain_text to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Aug 7, 2023
1 parent fa4000d commit d6c5e4b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions qp_woltka/tests/test_woltka.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def test_woltka_to_array_rep82(self):
copyfile(f'{sdir}/none.biom', f'{out_dir}/none.biom')
copyfile(f'{sdir}/free.biom', f'{out_dir}/free.biom')
copyfile(f'{sdir}/alignment.tar', f'{out_dir}/alignment.tar')
copyfile(f'{sdir}/coverages.tgz', f'{out_dir}/coverages.tgz')

success, ainfo, msg = woltka(
self.qclient, job_id, self.params, out_dir)
Expand All @@ -206,9 +207,11 @@ def test_woltka_to_array_rep82(self):
exp = [
ArtifactInfo('Alignment Profile', 'BIOM',
[(f'{out_dir}/free.biom', 'biom'),
(f'{out_dir}/alignment.tar', 'log')]),
(f'{out_dir}/alignment.tar', 'log'),
(f'{out_dir}/free/coverages.tgz', 'plan_text')]),
ArtifactInfo('Per genome Predictions', 'BIOM',
[(f'{out_dir}/none.biom', 'biom')])]
[(f'{out_dir}/none.biom', 'biom'),
(f'{out_dir}/none/coverages.tgz', 'plan_text')])]

self.assertCountEqual(ainfo, exp)

Expand Down Expand Up @@ -336,11 +339,14 @@ def test_woltka_to_array_wol(self):
exp = [
ArtifactInfo('Alignment Profile', 'BIOM',
[(f'{out_dir}/free.biom', 'biom'),
(f'{out_dir}/alignment.tar', 'log')]),
(f'{out_dir}/alignment.tar', 'log'),
(f'{out_dir}/free/coverages.tgz', 'plan_text')]),
ArtifactInfo('Per genome Predictions', 'BIOM',
[(f'{out_dir}/none.biom', 'biom')]),
[(f'{out_dir}/none.biom', 'biom'),
(f'{out_dir}/none/coverages.tgz', 'plan_text')]),
ArtifactInfo('Per gene Predictions', 'BIOM',
[(f'{out_dir}/per-gene.biom', 'biom')])]
[(f'{out_dir}/per-gene.biom', 'biom'),
(f'{out_dir}/per_gene/coverages.tgz', 'plan_text')])]

self.assertCountEqual(ainfo, exp)

Expand Down

0 comments on commit d6c5e4b

Please sign in to comment.