Skip to content

Commit eeb724c

Browse files
committed
test: fix CSV reporter test fixtures to match Assessment validation
Updated mock_assessment fixture to use attributes_total=0 with findings=[] to match the Assessment model validation that requires findings count to equal attributes_total. This is consistent with the fix already applied to test_multi_html_reporter.py.
1 parent 70e6fc8 commit eeb724c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/test_csv_reporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def mock_assessment(mock_repository):
5757
timestamp=datetime(2025, 1, 22, 14, 30, 22),
5858
overall_score=85.5,
5959
certification_level="Gold",
60-
attributes_assessed=20,
61-
attributes_not_assessed=5,
62-
attributes_total=25,
60+
attributes_assessed=0,
61+
attributes_not_assessed=0,
62+
attributes_total=0,
6363
findings=[],
6464
config=None,
6565
duration_seconds=42.5,

0 commit comments

Comments
 (0)