From abd3d8adf3e48d57b10cc58bfd9a530087e3ca99 Mon Sep 17 00:00:00 2001 From: Henning Timm Date: Thu, 25 Apr 2024 12:34:39 +0200 Subject: [PATCH] Docs --- tests/unit_tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index 6fa3480..bb2654a 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -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"]