Skip to content

Commit

Permalink
LANG: add pathogenome distro
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret authored Oct 17, 2024
2 parents 33dbb3b + 6c1fca3 commit 29bf18a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rescript/tests/test_ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,17 @@ def test_ncbi_fails(self):
'k__Fungi; p__Basidiomycota; c__Agaricomycetes; '
'o__Boletales; f__Boletaceae; g__Boletus; s__edulis'
)
self.assertTrue('Retrying' in '\n'.join(log.output[:3]))
exp_log_segment = 'Retrying'
for line in log.output:
if exp_log_segment in line:
result = True
break
else:
result = False
self.assertTrue(
result,
f'`{exp_log_segment}` not found in the output log.'
)

def test_get_ncbi_dirty_tricks(self):
with self.assertLogs(level='WARNING') as log:
Expand Down

0 comments on commit 29bf18a

Please sign in to comment.