Skip to content

Commit 85a5296

Browse files
authored
Refactor artifact evidence validation logic
1 parent c03aaf1 commit 85a5296

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/ix_autonomy_assurance_case_runtime/export_package_validation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from ix_autonomy_assurance_case_runtime.evidence import EvidenceBundle
2121
from ix_autonomy_assurance_case_runtime.export_package import (
2222
ExportArtifactKind,
23-
ExportArtifactReference,
2423
ExportPackageManifest,
2524
ExportRedactionRule,
2625
)
@@ -305,7 +304,11 @@ def _validate_artifacts(
305304
)
306305

307306
for artifact in manifest.artifacts:
308-
if artifact.required and artifact.kind.requires_evidence_reference() and not artifact.evidence_bundle_ids:
307+
if (
308+
artifact.required
309+
and artifact.kind.requires_evidence_reference()
310+
and not artifact.evidence_bundle_ids
311+
):
309312
findings.append(
310313
ExportPackageValidationFinding(
311314
finding_id=f"artifact-{artifact.artifact_id}-missing-evidence",

0 commit comments

Comments
 (0)