Skip to content

Commit

Permalink
Removed pytest.mark.sbmlmath for test and avoid deprecation warning w…
Browse files Browse the repository at this point in the history
…ith assertNotEquals
  • Loading branch information
nanglo123 committed Sep 11, 2023
1 parent 326d2e9 commit 572c9b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_modeling/test_askenet_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def test_remove_state(self):
new_semantics_ode_observables = new_semantics_ode['observables']

for new_state in new_model_states:
self.assertNotEquals(removed_state_id, new_state['id'])
self.assertNotEqual(removed_state_id, new_state['id'])

for new_transition in new_model_transitions:
self.assertNotIn(removed_state_id, new_transition['input'])
Expand All @@ -307,7 +307,7 @@ def test_remove_state(self):

# initials are bugged, all states removed rather than just targeted removed state in output amr
for new_initial in new_semantics_ode_initials:
self.assertNotEquals(removed_state_id, new_initial['target'])
self.assertNotEqual(removed_state_id, new_initial['target'])

# parameters that are associated in an expression with a removed state are not present in output amr
# (e.g.) if there exists an expression: "S*I*beta" and we remove S, then beta is no longer present in output
Expand All @@ -321,7 +321,6 @@ def test_remove_state(self):
self.assertNotIn(removed_state_id, new_observable['expression'])
self.assertNotIn(removed_state_id, new_observable['expression_mathml'])

@pytest.mark.sbmlmath
def test_add_state(self):
amr = _d(self.sir_amr)
new_state_id = 'TEST'
Expand All @@ -344,7 +343,7 @@ def test_remove_transition(self):
new_model_transition = new_amr['model']['transitions']

for new_transition in new_model_transition:
self.assertNotEquals(removed_transition, new_transition['id'])
self.assertNotEqual(removed_transition, new_transition['id'])

@SBMLMATH_REQUIRED
def test_add_transition(self):
Expand Down

0 comments on commit 572c9b4

Please sign in to comment.