← Về thư mục
scripts/test_check_sprint_contract.py
- _load_template · function · L27-L29 — def _load_template(path: Path) -> dict
- _valid_reviewer_full_contract · function · L32-L89 — def _valid_reviewer_full_contract() -> dict
- TestSchemaValidation · class · L92-L377 — class TestSchemaValidation(unittest.TestCase)
- test_valid_reviewer_full_passes · method · L93-L97 — def test_valid_reviewer_full_passes(self)
- test_missing_top_level_required_fails · method · L99-L104 — def test_missing_top_level_required_fails(self)
- test_bad_contract_id_pattern_fails · method · L106-L111 — def test_bad_contract_id_pattern_fails(self)
- test_mode_enum_rejects_quick · method · L113-L118 — def test_mode_enum_rejects_quick(self)
- test_additional_top_level_property_fails · method · L120-L125 — def test_additional_top_level_property_fails(self)
- test_agent_amendments_extra_key_fails · method · L127-L132 — def test_agent_amendments_extra_key_fails(self)
- test_override_ladder_when_present_must_be_exactly_3 · method · L134-L142 — def test_override_ladder_when_present_must_be_exactly_3(self)
- test_override_ladder_optional_absence_passes · method · L144-L149 — def test_override_ladder_optional_absence_passes(self)
- test_override_ladder_positional_order_enforced · method · L151-L160 — def test_override_ladder_positional_order_enforced(self)
- test_priority_enum · method · L162-L167 — def test_priority_enum(self)
- test_dimension_no_scoring_scale_field · method · L169-L174 — def test_dimension_no_scoring_scale_field(self)
- test_acceptance_dimension_id_pattern · method · L176-L181 — def test_acceptance_dimension_id_pattern(self)
- test_failure_condition_id_pattern · method · L183-L188 — def test_failure_condition_id_pattern(self)
- test_failure_conditions_must_contain_F0_accept_grade · method · L190-L204 — def test_failure_conditions_must_contain_F0_accept_grade(self)
- test_failure_conditions_F0_must_be_accept_action · method · L206-L220 — def test_failure_conditions_F0_must_be_accept_action(self)
- test_scoring_plan_required_must_contain_all_four_canonical_fields · method · L222-L233 — def test_scoring_plan_required_must_contain_all_four_canonical_fields(self)
- test_scoring_plan_required_rejects_typo_field_names · method · L235-L251 — def test_scoring_plan_required_rejects_typo_field_names(self)
- test_failure_condition_id_pattern_rejects_leading_zero · method · L253-L264 — def test_failure_condition_id_pattern_rejects_leading_zero(self)
- test_failure_condition_requires_severity · method · L266-L271 — def test_failure_condition_requires_severity(self)
- test_reviewer_mode_failure_condition_requires_quantifier · method · L273-L278 — def test_reviewer_mode_failure_condition_requires_quantifier(self)
- test_severity_range · method · L280-L288 — def test_severity_range(self)
- test_cross_reviewer_quantifier_enum · method · L290-L295 — def test_cross_reviewer_quantifier_enum(self)
- test_panel_size_required · method · L297-L302 — def test_panel_size_required(self)
- test_panel_size_minimum_1 · method · L304-L309 — def test_panel_size_minimum_1(self)
- test_paraphrase_minimum_dimensions_accepts_all_and_integer · method · L311-L321 — def test_paraphrase_minimum_dimensions_accepts_all_and_integer(self)
- test_conditional_quantifier_not_required_for_non_reviewer_mode · method · L323-L355 — def test_conditional_quantifier_not_required_for_non_reviewer_mode(self)
- test_shipped_template_full_passes_schema_and_invariants · method · L357-L361 — def test_shipped_template_full_passes_schema_and_invariants(self)
- test_shipped_template_full_produces_zero_soft_warnings · method · L363-L366 — def test_shipped_template_full_produces_zero_soft_warnings(self)
- test_shipped_template_methodology_focus_passes_schema_and_invariants · method · L368-L372 — def test_shipped_template_methodology_focus_passes_schema_and_invariants(self)
- test_shipped_template_methodology_focus_produces_zero_soft_warnings · method · L374-L377 — def test_shipped_template_methodology_focus_produces_zero_soft_warnings(self)
- TestStructuralInvariants · class · L380-L405 — class TestStructuralInvariants(unittest.TestCase)
- test_structural_invariant_duplicate_dimension_id · method · L381-L387 — def test_structural_invariant_duplicate_dimension_id(self)
- test_structural_invariant_duplicate_dimension_name · method · L389-L394 — def test_structural_invariant_duplicate_dimension_name(self)
- test_structural_invariant_duplicate_condition_id · method · L396-L401 — def test_structural_invariant_duplicate_condition_id(self)
- test_structural_invariant_clean_contract_passes · method · L403-L405 — def test_structural_invariant_clean_contract_passes(self)
- TestSoftWarnings · class · L408-L571 — class TestSoftWarnings(unittest.TestCase)
- test_sc1_baseline_lag_warns · method · L409-L414 — def test_sc1_baseline_lag_warns(self)
- test_sc1_no_ars_version_skips · method · L416-L421 — def test_sc1_no_ars_version_skips(self)
- test_sc1_lag_exactly_2_does_not_warn · method · L423-L430 — def test_sc1_lag_exactly_2_does_not_warn(self)
- test_sc2_single_dimension_warns · method · L432-L447 — def test_sc2_single_dimension_warns(self)
- test_sc3_no_mandatory_warns · method · L449-L455 — def test_sc3_no_mandatory_warns(self)
- test_sc2_multi_dimension_does_not_warn · method · L457-L461 — def test_sc2_multi_dimension_does_not_warn(self)
- test_sc3_with_mandatory_does_not_warn · method · L463-L467 — def test_sc3_with_mandatory_does_not_warn(self)
- test_sc4_orphan_dimension_reference_warns · method · L469-L480 — def test_sc4_orphan_dimension_reference_warns(self)
- test_sc5_measurement_procedure_missing_required_outputs_warns · method · L482-L487 — def test_sc5_measurement_procedure_missing_required_outputs_warns(self)
- test_sc6_placeholder_unreachable_on_schema_valid_contract · method · L489-L498 — def test_sc6_placeholder_unreachable_on_schema_valid_contract(self)
- test_sc7_conflicting_failure_condition_actions_warns · method · L500-L508 — def test_sc7_conflicting_failure_condition_actions_warns(self)
- test_sc9_impossible_paraphrase_minimum_warns · method · L510-L521 — def test_sc9_impossible_paraphrase_minimum_warns(self)
- test_sc10_unreferenced_mandatory_dimension_warns · method · L523-L547 — def test_sc10_unreferenced_mandatory_dimension_warns(self)
- test_sc11_panel_size_1_warns · method · L550-L555 — def test_sc11_panel_size_1_warns(self)
- test_sc11_mode_panel_mismatch_full · method · L557-L562 — def test_sc11_mode_panel_mismatch_full(self)
- test_sc11_mode_panel_mismatch_methodology · method · L564-L571 — def test_sc11_mode_panel_mismatch_methodology(self)
- TestCLI · class · L574-L591 — class TestCLI(unittest.TestCase)
- test_cli_missing_file_returns_1 · method · L575-L577 — def test_cli_missing_file_returns_1(self)
- test_cli_bad_json_returns_1 · method · L579-L584 — def test_cli_bad_json_returns_1(self)
- test_cli_valid_returns_0 · method · L586-L591 — def test_cli_valid_returns_0(self)
- TestTemplateSemantics · class · L594-L610 — class TestTemplateSemantics(unittest.TestCase)
- test_full_template_precedence_rule · method · L595-L610 — def test_full_template_precedence_rule(self)
- _valid_writer_full_contract · function · L613-L617 — def _valid_writer_full_contract() -> dict
- _valid_evaluator_full_contract · function · L620-L623 — def _valid_evaluator_full_contract() -> dict
- TestSchema131WriterEvaluatorPositive · class · L626-L650 — class TestSchema131WriterEvaluatorPositive(unittest.TestCase)
- test_shipped_writer_full_passes_schema_and_invariants · method · L630-L634 — def test_shipped_writer_full_passes_schema_and_invariants(self)
- test_shipped_writer_full_produces_zero_soft_warnings · method · L636-L639 — def test_shipped_writer_full_produces_zero_soft_warnings(self)
- test_shipped_evaluator_full_passes_schema_and_invariants · method · L641-L645 — def test_shipped_evaluator_full_passes_schema_and_invariants(self)
- test_shipped_evaluator_full_produces_zero_soft_warnings · method · L647-L650 — def test_shipped_evaluator_full_produces_zero_soft_warnings(self)
- TestSchema131NegativeBranches · class · L653-L709 — class TestSchema131NegativeBranches(unittest.TestCase)
- test_branch_11_writer_full_missing_pre_commitment_artifacts_fails · method · L660-L665 — def test_branch_11_writer_full_missing_pre_commitment_artifacts_fails(self)
- test_branch_12_evaluator_full_missing_disagreement_handling_fails · method · L667-L672 — def test_branch_12_evaluator_full_missing_disagreement_handling_fails(self)
- test_branch_5_writer_full_action_pinned_to_writer_decision_enum · method · L674-L684 — def test_branch_5_writer_full_action_pinned_to_writer_decision_enum(self)
- test_branch_6_evaluator_full_action_pinned_to_evaluator_decision_enum · method · L686-L696 — def test_branch_6_evaluator_full_action_pinned_to_evaluator_decision_enum(self)
- test_branch_4_reviewer_action_mis_pinned_to_generator_enum_fails · method · L698-L709 — def test_branch_4_reviewer_action_mis_pinned_to_generator_enum_fails(self)
- TestSchema131ReviewerZeroTouch · class · L712-L736 — class TestSchema131ReviewerZeroTouch(unittest.TestCase)
- test_existing_reviewer_contracts_still_valid_under_13_1 · method · L716-L724 — def test_existing_reviewer_contracts_still_valid_under_13_1(self)
- test_byte_equivalent_validation_for_reviewer_contracts · method · L726-L736 — def test_byte_equivalent_validation_for_reviewer_contracts(self)
- TestSC5SC9SC11ModeGating · class · L739-L784 — class TestSC5SC9SC11ModeGating(unittest.TestCase)
- test_sc5_does_not_fire_on_writer_full · method · L747-L750 — def test_sc5_does_not_fire_on_writer_full(self)
- test_sc5_does_not_fire_on_evaluator_full · method · L752-L755 — def test_sc5_does_not_fire_on_evaluator_full(self)
- test_sc11_does_not_fire_on_writer_full · method · L757-L760 — def test_sc11_does_not_fire_on_writer_full(self)
- test_sc11_does_not_fire_on_evaluator_full · method · L762-L765 — def test_sc11_does_not_fire_on_evaluator_full(self)
- test_sc9_writer_full_reads_pre_commitment_artifacts_path · method · L767-L776 — def test_sc9_writer_full_reads_pre_commitment_artifacts_path(self)
- test_sc9_evaluator_full_reads_disagreement_handling_path · method · L778-L784 — def test_sc9_evaluator_full_reads_disagreement_handling_path(self)