Skip to content

Commit

Permalink
ensure sample ids exist in sample output
Browse files Browse the repository at this point in the history
  • Loading branch information
Clockwork-Rat committed Feb 27, 2024
1 parent 6e17348 commit 5c57695
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions q2_feature_table/tests/test_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,16 @@ def test_basic(self):
index_fp = os.path.join(output_dir, 'index.html')
self.assertTrue(os.path.exists(index_fp))

sample_frequency_fp = os.path.join(output_dir,
'sample-frequency-detail.html')
self.assertTrue(os.path.exists(sample_frequency_fp))

with open(sample_frequency_fp) as sp:
text = sp.read()
self.assertTrue('S1' in text)
self.assertTrue('S2' in text)
self.assertTrue('S3' in text)

def test_frequency_ranges_are_zero(self):
table = biom.Table(np.array([[25, 25, 25], [25, 25, 25]]),
['O1', 'O2'],
Expand Down

0 comments on commit 5c57695

Please sign in to comment.