Skip to content

Commit

Permalink
cleanup a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Nov 27, 2020
1 parent 09b073e commit 1c744f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/transform/test_transform_split_reversible_reactions.py
Expand Up @@ -138,20 +138,21 @@ def test_skipping_submodels(self):
self.assertNotEqual(rxn_ids, set([rxn.id for rxn in model.reactions]))

self.submodel.framework = onto['WC:dynamic_flux_balance_analysis']
model = self.model.copy()
SplitReversibleReactionsTransform(excluded_frameworks=dfba_framework).run(model)
self.assertEqual(rxn_ids, set([rxn.id for rxn in model.reactions]))
SplitReversibleReactionsTransform(excluded_frameworks=dfba_framework).run(self.model)
self.assertEqual(rxn_ids, set([rxn.id for rxn in self.model.reactions]))

def test_dfba_submodel(self):
def test_dfba_flux_bounds(self):
self.submodel.framework = onto['WC:dynamic_flux_balance_analysis']

# test no flux bounds
self.r1.reversible = True
model = self.model.copy()
SplitReversibleReactionsTransform().run(model)
for id in ['r0_forward', 'r0_backward', 'r1_forward', 'r1_backward']:
rxn = model.reactions.get_one(id=id)
self.assertEqual(rxn.flux_bounds, None)

# test bad flux bounds
self.r0.flux_bounds = FluxBounds(min=3.,
max=2.,
units=unit_registry.parse_units('M s^-1'))
Expand Down

0 comments on commit 1c744f3

Please sign in to comment.