← Về thư mục
tests/iso-standards-readiness/test_scripts.py
- source · function · L28-L35 — def source(identifier: str = "SRC-1") -> dict[str, str]
- evidence · function · L38-L46 — def evidence(identifier: str = "EV-1") -> list[dict[str, str]]
- approval · function · L49-L50 — def approval() -> dict[str, str]
- controlled · function · L53-L65 — def controlled( *, identifier: str, status: str = "approved", source_id: str = "SRC-1", ) -> dict[str, Any]
- metadata · function · L68-L73 — def metadata(identifier_key: str, identifier: str) -> dict[str, Any]
- scope_data · function · L76-L115 — def scope_data() -> dict[str, Any]
- document_data · function · L118-L164 — def document_data() -> dict[str, Any]
- capa_data · function · L167-L226 — def capa_data() -> dict[str, Any]
- traceability_data · function · L229-L280 — def traceability_data() -> dict[str, Any]
- qmsr_data · function · L283-L334 — def qmsr_data() -> dict[str, Any]
- manifest_data · function · L337-L372 — def manifest_data( local_path: str = "evidence.md", digest: str | None = None, domain: str = "document-and-record-control", ) -> dict[str, Any]
- supplier_data · function · L375-L425 — def supplier_data() -> dict[str, Any]
- CLITests · class · L428-L675 — class CLITests(unittest.TestCase)
- run_cli · method · L431-L447 — def run_cli( self, script: str, *arguments: str, cwd: Path | None = None, ) -> subprocess.CompletedProcess[str]
- write_json · method · L449-L452 — def write_json(self, directory: Path, name: str, data: Any) -> Path
- assert_valid · method · L454-L462 — def assert_valid(self, script: str, data: dict[str, Any]) -> None
- test_all_help_commands · method · L464-L469 — def test_all_help_commands(self) -> None
- test_valid_scope · method · L471-L472 — def test_valid_scope(self) -> None
- test_valid_document_register · method · L474-L475 — def test_valid_document_register(self) -> None
- test_valid_capa · method · L477-L478 — def test_valid_capa(self) -> None
- test_valid_traceability · method · L480-L481 — def test_valid_traceability(self) -> None
- test_valid_qmsr · method · L483-L484 — def test_valid_qmsr(self) -> None
- test_valid_supplier_controls · method · L486-L487 — def test_valid_supplier_controls(self) -> None
- test_manifest_and_gap_analyzer · method · L489-L521 — def test_manifest_and_gap_analyzer(self) -> None
- test_closed_capa_without_effectiveness_fails · method · L523-L533 — def test_closed_capa_without_effectiveness_fails(self) -> None
- test_undetermined_applicability_fails · method · L535-L542 — def test_undetermined_applicability_fails(self) -> None
- test_duplicate_json_key_is_input_error · method · L544-L550 — def test_duplicate_json_key_is_input_error(self) -> None
- test_output_is_deterministic · method · L552-L558 — def test_output_is_deterministic(self) -> None
- test_evidence_path_traversal_is_refused · method · L560-L576 — def test_evidence_path_traversal_is_refused(self) -> None
- test_refuses_overwrite_without_force · method · L578-L591 — def test_refuses_overwrite_without_force(self) -> None
- test_distributed_json_templates_fail_closed · method · L593-L611 — def test_distributed_json_templates_fail_closed(self) -> None
- test_standard_specific_templates_fail_closed · method · L613-L630 — def test_standard_specific_templates_fail_closed(self) -> None
- test_unknown_standard_is_refused · method · L632-L643 — def test_unknown_standard_is_refused(self) -> None
- test_laboratory_profile_uses_its_own_domains · method · L645-L660 — def test_laboratory_profile_uses_its_own_domains(self) -> None
- test_device_domain_is_refused_under_laboratory_profile · method · L662-L675 — def test_device_domain_is_refused_under_laboratory_profile(self) -> None