Skip to content

Commit

Permalink
testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lzy7071 committed Apr 6, 2020
1 parent 3f89a82 commit 446dac6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/query/test_query_sabio_compound.py
Expand Up @@ -53,3 +53,9 @@ def test_get_inchikey_by_name_real(self):
names_0 = ['damp', 'beta-D-Fructofuranose 6-phosphate', 'nonsense']
result_0 = src.get_inchikey_by_name(names_0)
self.assertTrue('KHWCHTKSEGGWEX-RRKCRQDMSA-N' in result_0)
names_1 = ['D-Glucose 1,6-bisphosphate', 'D-Mannose 6-phosphate']
result_1 = src.get_inchikey_by_name(names_1)
print(result_1)
names_2 = ['D-Mannose 1,6-bisphosphate', 'D-Glucose 6-phosphate']
result_2 = src.get_inchikey_by_name(names_2)
print(result_2)
4 changes: 4 additions & 0 deletions tests/query/test_query_sabiork_old.py
Expand Up @@ -126,6 +126,10 @@ def test_get_kinlaw_by_rxn_name(self):
ids_0.append(doc['kinlaw_id'])
self.assertTrue(41 in ids_0)
self.assertEqual(0, count)
substrate_name_1 = ['D-Glucose 1,6-bisphosphate', 'D-Mannose 6-phosphate']
product_name_1 = ['D-Mannose 1,6-bisphosphate', 'D-Glucose 6-phosphate']
count_1, docs_1 = self.src.get_kinlaw_by_rxn_name(substrate_name_1, product_name_1, bound='tight')
self.assertEqual(count_1, 2)

@unittest.skip('passed')
def test_get_unique_reactions(self):
Expand Down

0 comments on commit 446dac6

Please sign in to comment.