Skip to content

Commit

Permalink
Simpler assert check for success.
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-drews committed Sep 20, 2024
1 parent 22e5be6 commit 6b8bc64
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/unit/test_duplicate_reactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ def test_run(self):
pass_reactions = [abc123, def456]
pass_conditions = Conditions(reaction_rates=pass_reactions)
box_model = MusicBox(initial_conditions=pass_conditions)
box_model.check_config("Loaded from string.")

# Pass test should throw an error above if it fails
assert True, f"All is good." # example of assertion
assert box_model.check_config("Loaded from string.")

# Fail: duplicate reaction names
fail_reactions = reactions=[abc123, abc789]
Expand Down

0 comments on commit 6b8bc64

Please sign in to comment.