Skip to content

Commit b0bd461

Browse files
committed
test: fixing tests
1 parent 0081c71 commit b0bd461

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bc_obps/reporting/service/report_validation/validators/reporting_configuration_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def validate_reporting_fields(report_version: ReportVersion) -> dict[str, Report
6060
allowed_slugs = set(record.allowed_slugs)
6161

6262
if not reported_slugs.issubset(allowed_slugs):
63-
raise SystemError(
63+
raise InternalSystemError(
6464
f"ReportMethodology ID {record.id} has reporting fields {reported_slugs - allowed_slugs} which are not in the allowed fields {allowed_slugs} of its matching configuration element."
6565
)
6666

bc_obps/reporting/tests/service/report_validation/validators/test_reporting_configuration_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_raises_if_no_configuration_element_present(self):
2929
)
3030

3131
with pytest.raises(
32-
SystemError,
32+
InternalSystemError,
3333
match=f"Missing configuration elements for report methodology IDs: {report_methodology.id}",
3434
):
3535
self.validator_under_test.validate(self.report_version)

0 commit comments

Comments
 (0)