Skip to content

Commit

Permalink
testing reflect $
Browse files Browse the repository at this point in the history
  • Loading branch information
lzy7071 committed Mar 16, 2020
1 parent c63b7b3 commit 3f458ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/query/test_query_sabiork_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,4 @@ def test_get_rxn_with_prm(self):
def test_get_reaction_by_subunit(self):
_ids = ['P20932', 'P00803']
result = self.src.get_reaction_by_subunit(_ids)
exp = {'kinlaw_id': 31611, 'resource': [{'namespace': 'pubmed', 'id': '14967029'}, {'namespace': 'ec-code', 'id': '1.1.99.31'}, {'namespace': 'sabiork.reaction', 'id': '11388'}], 'ec_meta': {'ec_number': '1.1.99.31', 'catalytic_activity': ['(S)-2-hydroxy-2-phenylacetate + acceptor = 2-oxo-2-phenylacetate +reduced acceptor'], 'ec_name': '(S)-mandelate dehydrogenase', 'ec_synonyms': ['L(+)-mandelate dehydrogenase', 'MDH']}, 'substrates': [[{'sabio_compound_id': 26485, 'substrate_name': 'Methyl (S)-mandelate', 'substrate_synonym': [], 'substrate_structure': [{'value': 'InChI=1S/C9H10O3/c1-12-9(11)8(10)7-5-3-2-4-6-7/h2-6,8,10H,1H3/t8-/m0/s1', 'format': 'inchi', 'inchi_structure': 'InChI=1S/C9H10O3/c1-12-9(11)8(10)7-5-3-2-4-6-7/h2-6,8,10H,1H3/t8-/m0/s1', 'inchi_connectivity': 'C9H10O3/c1-12-9(11)8(10)7-5-3-2-4-6-7', 'InChI_Key': 'ITATYELQCJRCCK-QMMMGPOBSA-N'}, {'value': 'COC(=O)[C@H](c1ccccc1)O', 'format': 'smiles', 'inchi_structure': 'InChI=1S/C9H10O3/c1-12-9(11)8(10)7-5-3-2-4-6-7/h2-6,8,10H,1H3/t8-/m0/s1', 'inchi_connectivity': 'C9H10O3/c1-12-9(11)8(10)7-5-3-2-4-6-7'}], 'substrate_compartment': {}, 'substrate_coefficient': 1.0, 'substrate_type': None, 'created': '2018-11-13 15:34:45.639403', 'modified': '2018-11-13 18:21:43.229261', 'None': 'View all entries for compound Methyl (S)-mandelate', 'kegg_id': None, 'pubchem_substance_id': None, 'pubchem_compound_id': None}, {'sabio_compound_id': 3062, 'substrate_name': 'Acceptor', 'substrate_synonym': ['A'], 'substrate_structure': [], 'substrate_compartment': {}, 'substrate_coefficient': 1.0, 'substrate_type': None, 'created': '2018-11-13 15:34:45.639403', 'modified': '2018-11-13 18:06:26.975660', 'chebi': 'CHEBI:15339', 'None': 'View all entries for compound Acceptor', 'kegg_id': 'C16722', 'pubchem_substance_id': '3330', 'pubchem_compound_id': None}]], 'products': 'reaction_participant.product'}
self.assertEqual(exp, result[-1])
self.assertEqual(31611, result[-1]['kinlaw_id'])

0 comments on commit 3f458ce

Please sign in to comment.