@@ -138,15 +138,24 @@ def test_incomplete_changed_or_unrelated_evidence_cannot_qualify(tmp_path, mutat
138138 case = _case (tmp_path )
139139 validation = copy .deepcopy (case [4 ])
140140 attr = validation [1 ]["failure_attribution" ]
141- if mutation == "head" : attr ["head_revision" ] = "f" * 40
142- elif mutation == "signature" : attr ["head_observation" ]["failure_signature" ] = "sha256:" + "d" * 64
143- elif mutation == "command" : attr ["same_command" ] = "python -m mypy another.py"
144- elif mutation == "fixture" : attr ["head_observation" ]["fixture_digest" ] = "sha256:" + "d" * 64
145- elif mutation == "environment" : attr ["head_observation" ]["environment_digest" ] = "sha256:" + "d" * 64
146- elif mutation == "missing" : attr .pop ("causal_scope_analysis" )
147- elif mutation == "self" : attr ["affected_invariant_evidence" ] = ["validator:broad" ]
148- elif mutation == "failed" : validation [0 ].update (status = "failed" , reason = "Invariant failed." )
149- elif mutation == "uncovered" : validation [0 ]["covers_paths" ] = []
141+ if mutation == "head" :
142+ attr ["head_revision" ] = "f" * 40
143+ elif mutation == "signature" :
144+ attr ["head_observation" ]["failure_signature" ] = "sha256:" + "d" * 64
145+ elif mutation == "command" :
146+ attr ["same_command" ] = "python -m mypy another.py"
147+ elif mutation == "fixture" :
148+ attr ["head_observation" ]["fixture_digest" ] = "sha256:" + "d" * 64
149+ elif mutation == "environment" :
150+ attr ["head_observation" ]["environment_digest" ] = "sha256:" + "d" * 64
151+ elif mutation == "missing" :
152+ attr .pop ("causal_scope_analysis" )
153+ elif mutation == "self" :
154+ attr ["affected_invariant_evidence" ] = ["validator:broad" ]
155+ elif mutation == "failed" :
156+ validation [0 ].update (status = "failed" , reason = "Invariant failed." )
157+ elif mutation == "uncovered" :
158+ validation [0 ]["covers_paths" ] = []
150159 with pytest .raises (ValueError ):
151160 _record (tmp_path , case , validation )
152161
0 commit comments