From 6b8bc647bc0115f84d52c31e381d8085d7ae6fb2 Mon Sep 17 00:00:00 2001 From: carl-drews Date: Fri, 20 Sep 2024 11:40:38 -0600 Subject: [PATCH] Simpler assert check for success. --- tests/unit/test_duplicate_reactions.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/test_duplicate_reactions.py b/tests/unit/test_duplicate_reactions.py index 93c9751..d5262e6 100644 --- a/tests/unit/test_duplicate_reactions.py +++ b/tests/unit/test_duplicate_reactions.py @@ -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]