We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab385d commit 5832294Copy full SHA for 5832294
tests/unit_tests.py
@@ -175,8 +175,13 @@ def test_breakpoint_identification():
175
for test_case in test_cases:
176
with open(test_case["file"], "r") as case_file:
177
split_blocks, violations = _identify_break_points(case_file.read())
178
+
179
+ # Ensure the expected blocks are returned
180
+ # and that the correct number is returned
181
assert split_blocks == test_case["expected_blocks"]
182
assert len(violations) == len(test_case["expected_violations"])
183
184
+ # Ensure the expected error are detected
185
for vio, exp_vio in zip(violations, test_case["expected_violations"]):
186
assert vio.level == exp_vio["level"]
187
assert vio.rule == exp_vio["rule"]
0 commit comments