Option C Tools
Loading...
Searching...
No Matches
tests_audit.test_audit_stub Namespace Reference

Functions

 test_compliant_project (Path tmp_path)
 test_migrating_project (Path tmp_path)
 test_bootstrap_project (Path tmp_path)
 test_unmigrated_project (Path tmp_path)
 test_corrupt_status_file (Path tmp_path)

Detailed Description

Purpose
-------
FS-539 / FS-501 (stub) regression coverage — :func:`oct.audit.oct_audit.run_audit`
returns the correct stage + exit code for every ``oc_status.json`` state.

Responsibilities
----------------
- Verify compliant project returns stage ``"compliant"`` and exit code 0.
- Verify bootstrap / migrating / missing states return the correct stage
  and exit code.

Diagnostics
-----------
Domain: AUDIT-TESTS
    Levels:
        L2 — test lifecycle
        L3 — assertion details
        L4 — deep tracing

Contracts
---------
- All operations use ``tmp_path`` as the project root; no real project
  files are touched.

Function Documentation

◆ test_bootstrap_project()

tests_audit.test_audit_stub.test_bootstrap_project ( Path tmp_path)

Definition at line 73 of file test_audit_stub.py.

◆ test_compliant_project()

tests_audit.test_audit_stub.test_compliant_project ( Path tmp_path)

Definition at line 40 of file test_audit_stub.py.

◆ test_corrupt_status_file()

tests_audit.test_audit_stub.test_corrupt_status_file ( Path tmp_path)

Definition at line 93 of file test_audit_stub.py.

◆ test_migrating_project()

tests_audit.test_audit_stub.test_migrating_project ( Path tmp_path)

Definition at line 58 of file test_audit_stub.py.

◆ test_unmigrated_project()

tests_audit.test_audit_stub.test_unmigrated_project ( Path tmp_path)

Definition at line 87 of file test_audit_stub.py.