Skip to content

Commit

Permalink
100% code coverage in transition solver base class 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnapolitano committed Jan 30, 2024
1 parent f66e236 commit c28a6f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_transition_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ def test_superclass_get_prediction_interval():
ts.get_prediction_interval(0)


@patch.object(TransitionSolver, "__abstractmethods__", set())
def test_superclass_get_transitions():
ts = TransitionSolver()
assert ts.transitions is None


@patch.object(TransitionSolver, "__abstractmethods__", set())
def test_check_any_element_nan_or_inf_with_nan():
with pytest.raises(ValueError):
Expand Down

0 comments on commit c28a6f5

Please sign in to comment.