diff --git a/tests/scripts/test_audit_anomalies.py b/tests/scripts/test_audit_anomalies.py index 07ba6d2bc..86d7889b1 100644 --- a/tests/scripts/test_audit_anomalies.py +++ b/tests/scripts/test_audit_anomalies.py @@ -1,16 +1,18 @@ import dataclasses from typing import Optional -import pytest - +# The checks are registry-driven: production reaches them through `_REGISTRY`, +# never by name, so the underscore marks "not a direct call site" rather than +# "untestable". Naming them here is the only way to exercise one check in +# isolation, hence the private-usage waivers. from scripts.audit.anomalies import ( - _REGISTRY, + _REGISTRY, # pyright: ignore[reportPrivateUsage] PropertyAudit, Severity, - _already_meets_goal_with_works, - _effective_lodged_divergence, - _implausible_lodged_score, - _plan_stops_short_of_goal, + _already_meets_goal_with_works, # pyright: ignore[reportPrivateUsage] + _effective_lodged_divergence, # pyright: ignore[reportPrivateUsage] + _implausible_lodged_score, # pyright: ignore[reportPrivateUsage] + _plan_stops_short_of_goal, # pyright: ignore[reportPrivateUsage] )