Skip to content

Commit f10931c

Browse files
committed
Upate tests for molecular formulae annotation
1 parent 5d46050 commit f10931c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/test_annotation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def test_annotate_molecular_formulae(self):
115115
self.assertEqual(sqlite_records(to_test_results(self.db_results), "molecular_formulae"), sqlite_records(to_test_data(self.db_results), "molecular_formulae"))
116116
self.assertEqual(sqlite_count(to_test_results(self.db_results), "molecular_formulae"), 16)
117117

118+
db_mfdb_results = "results_mfdb.sqlite"
119+
annotate_molecular_formulae(self.df, self.lib_adducts, self.ppm, to_test_results(db_mfdb_results))
120+
self.assertEqual(sqlite_records(to_test_results(db_mfdb_results), "molecular_formulae"), sqlite_records(to_test_data(db_mfdb_results), "molecular_formulae"))
121+
self.assertEqual(sqlite_count(to_test_results(db_mfdb_results), "molecular_formulae"), 1155)
122+
118123
def test_summary(self):
119124

120125
def _assert(summary_test_data, summary_result):
160 KB
Binary file not shown.

0 commit comments

Comments
 (0)