Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningTimm committed Apr 25, 2024
1 parent bab385d commit 5832294
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ def test_breakpoint_identification():
for test_case in test_cases:
with open(test_case["file"], "r") as case_file:
split_blocks, violations = _identify_break_points(case_file.read())

# Ensure the expected blocks are returned
# and that the correct number is returned
assert split_blocks == test_case["expected_blocks"]
assert len(violations) == len(test_case["expected_violations"])

# Ensure the expected error are detected
for vio, exp_vio in zip(violations, test_case["expected_violations"]):
assert vio.level == exp_vio["level"]
assert vio.rule == exp_vio["rule"]

0 comments on commit 5832294

Please sign in to comment.