← Về thư mục
tests/scholar-evaluation/test_scripts.py
- load_json_asset · function · L29-L30 — def load_json_asset(name: str) -> dict
- rated_evaluation · function · L33-L61 — def rated_evaluation( work_id: str = "WORK-SYNTHETIC-001", evaluation_id: str = "EVALUATION-SYNTHETIC-001", scores: list[float] | None = None, ) -> dict
- completed_process · function · L64-L71 — def completed_process() -> dict
- StaticSafetyTests · class · L74-L146 — class StaticSafetyTests(unittest.TestCase)
- test_scripts_have_no_network_dynamic_process_or_executable_serialization · method · L75-L109 — def test_scripts_have_no_network_dynamic_process_or_executable_serialization(self) -> None
- test_external_schematic_scripts_are_absent · method · L111-L113 — def test_external_schematic_scripts_are_absent(self) -> None
- test_skill_is_versioned_and_under_500_lines · method · L115-L121 — def test_skill_is_versioned_and_under_500_lines(self) -> None
- test_expected_assets_only · method · L123-L132 — def test_expected_assets_only(self) -> None
- test_all_script_help_is_dependency_free · method · L134-L146 — def test_all_script_help_is_dependency_free(self) -> None
- RubricAndInputTests · class · L149-L223 — class RubricAndInputTests(unittest.TestCase)
- test_template_rubric_is_structurally_valid_with_warning · method · L150-L161 — def test_template_rubric_is_structurally_valid_with_warning(self) -> None
- test_validator_rejects_unknown_field · method · L163-L167 — def test_validator_rejects_unknown_field(self) -> None
- test_validator_fails_closed_on_malformed_scale · method · L169-L173 — def test_validator_fails_closed_on_malformed_scale(self) -> None
- test_validator_rejects_proxy_criterion · method · L175-L182 — def test_validator_rejects_proxy_criterion(self) -> None
- test_duplicate_json_key_is_rejected · method · L184-L189 — def test_duplicate_json_key_is_rejected(self) -> None
- test_private_application_field_is_rejected · method · L191-L201 — def test_private_application_field_is_rejected(self) -> None
- test_excessive_depth_is_rejected · method · L203-L215 — def test_excessive_depth_is_rejected(self) -> None
- test_unrated_template_is_valid · method · L217-L223 — def test_unrated_template_is_valid(self) -> None
- ScoringAndTraceabilityTests · class · L226-L299 — class ScoringAndTraceabilityTests(unittest.TestCase)
- setUp · method · L227-L228 — def setUp(self) -> None
- test_weighted_math_is_bounded_and_has_no_recommendation · method · L230-L239 — def test_weighted_math_is_bounded_and_has_no_recommendation(self) -> None
- test_missing_and_not_applicable_are_reported_not_zeroed · method · L241-L266 — def test_missing_and_not_applicable_are_reported_not_zeroed(self) -> None
- test_uncertainty_is_clamped_to_scale · method · L268-L274 — def test_uncertainty_is_clamped_to_scale(self) -> None
- test_traceability_passes_and_never_copies_content · method · L276-L285 — def test_traceability_passes_and_never_copies_content(self) -> None
- test_unresolved_evidence_fails · method · L287-L299 — def test_unresolved_evidence_fails(self) -> None
- SensitivityAgreementAndProcessTests · class · L302-L384 — class SensitivityAgreementAndProcessTests(unittest.TestCase)
- setUp · method · L303-L304 — def setUp(self) -> None
- test_weight_sensitivity_detects_order_instability · method · L306-L321 — def test_weight_sensitivity_detects_order_instability(self) -> None
- test_agreement_summary_is_pseudonymous_and_descriptive · method · L323-L332 — def test_agreement_summary_is_pseudonymous_and_descriptive(self) -> None
- test_agreement_rejects_extra_csv_column · method · L334-L345 — def test_agreement_rejects_extra_csv_column(self) -> None
- test_unconfirmed_process_is_blocked · method · L347-L352 — def test_unconfirmed_process_is_blocked(self) -> None
- test_completed_low_stakes_process_passes · method · L354-L358 — def test_completed_low_stakes_process_passes(self) -> None
- test_high_impact_process_is_blocked · method · L360-L365 — def test_high_impact_process_is_blocked(self) -> None
- test_report_scaffold_contains_only_safe_placeholders · method · L367-L384 — def test_report_scaffold_contains_only_safe_placeholders(self) -> None
- FileOutputTests · class · L387-L403 — class FileOutputTests(unittest.TestCase)
- test_output_refuses_overwrite_without_force · method · L388-L398 — def test_output_refuses_overwrite_without_force(self) -> None
- test_validate_file_returns_minimized_report · method · L400-L403 — def test_validate_file_returns_minimized_report(self) -> None