Skip to content

Commit

Permalink
fix: skip coverage on failure-cases, since these should not actually …
Browse files Browse the repository at this point in the history
…be reached
  • Loading branch information
Braden Dubois committed Mar 16, 2021
1 parent 5d107a4 commit 4e4cd53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_probability_lookup():

try:
assert t.probability_lookup(Outcome("Xj", "foo"), priors) == 100
raise Exception
raise Exception # coverage: skip
except MissingTableRow:
pass

Expand Down Expand Up @@ -426,14 +426,14 @@ def test_parse_model():
# nonexistent file
try:
parse_model(Path("fake", "path", "fake"))
raise Exception
raise Exception # coverage: skip
except FileNotFoundError:
pass

# invalid file
try:
parse_model(Path("do", "util", "helpers.py"))
raise Exception
raise Exception # coverage: skip
except FileNotFoundError:
pass

Expand Down

0 comments on commit 4e4cd53

Please sign in to comment.