Skip to content

Commit baa5275

Browse files
author
Will Trimble
committed
Added two tests
1 parent a4e2c02 commit baa5275

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_mgrtools.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,16 @@ def test_mg_m5nrtoolspl():
223223
assert stat == 0
224224
assert b"alcohol dehydrogenase" in out
225225

226+
def test_query_matrix():
227+
s='''mg-query.py 'http://api.mg-rast.org/matrix/organism?group_level=phylum&source=SEED&hit_type=single&result_type=abundance&evalue=1&identity=60&length=15&taxid=0&id=mgm4510219.3' > matrix.biom'''
228+
stat, out, err = runme(s)
229+
assert stat == 0
230+
def test_mg_biom_view():
231+
s='''mg-biom-view.py < mgm4514486.3.refseq.biom.json'''
232+
stat, out, err = runme(s)
233+
assert stat == 0
234+
assert b'Bacteria;Proteobacteria;Gammaproteobacteria;Vibrionales;Vibrionaceae;Vibrio;Vibrio cholerae;Vibrio cholerae BX 330286 8' in out
235+
226236
@pytest.mark.known_failing
227237
def test_known_failing():
228238
assert False # This should not normally run

0 commit comments

Comments
 (0)