Skip to content

Commit 73c89fe

Browse files
committed
remove try except
1 parent 9a19a7f commit 73c89fe

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/test_problem_bank_helpers_other_functionality.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ def test_missing_values(file_path):
7070

7171
def test_backticks_to_code_simple_invalid_params():
7272
case = {"params": {"part1": 1, "part2": {"ans1": {1}}}}
73-
try:
74-
pbh.backticks_to_code_tags(case)
75-
except:
76-
pytest.fail(f"Error invalid backticks_to_code_tags params")
73+
pbh.backticks_to_code_tags(case)
7774

7875
def test_backticks_to_code_skip_invalid_params():
7976
"""Test rounding an int with specified sigfigs"""
@@ -96,7 +93,4 @@ def test_backticks_to_code_skip_invalid_params():
9693
},
9794
}
9895

99-
try:
100-
pbh.backticks_to_code_tags(data)
101-
except:
102-
pytest.fail(f"Error invalid backticks_to_code_tags params")
96+
pbh.backticks_to_code_tags(data)

0 commit comments

Comments
 (0)