Option C Tools
Loading...
Searching...
No Matches
tests_scaffold.test_option_c_layout Namespace Reference

Functions

 test_scaffold_emits_option_c_dotdir (Path tmp_path)
 test_scaffold_oc_status_is_compliant_with_all_pillars (Path tmp_path)
 test_scaffold_oc_status_schema_version_is_v1 (Path tmp_path)
 test_scaffold_does_not_emit_legacy_paths (Path tmp_path)

Detailed Description

Purpose
-------
FS-539 regression coverage — :func:`oct.scaffold.run_scaffold` must emit
the canonical ``.option_c/`` dotdir layout (not the legacy root-level
``.octrc.json`` + ``oc_diagnostics/debug_config.json`` + ``logs/``
layout) and stamp a ``stage="compliant"`` ``oc_status.json`` so newly
scaffolded projects are born migrated.

Responsibilities
----------------
- ``.option_c/`` + ``.option_c/logs/`` + ``.option_c/cache/`` exist.
- ``.option_c/oc_status.json`` is a well-formed v1 schema blob with
  every pillar enabled.
- Legacy paths (``.octrc.json``, ``oc_diagnostics/``, root-level
  ``logs/``) are absent — the scaffold does not dual-write.

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

Contracts
---------
- All scaffold operations write to ``tmp_path``; no real project
  directories are created.

Function Documentation

◆ test_scaffold_does_not_emit_legacy_paths()

tests_scaffold.test_option_c_layout.test_scaffold_does_not_emit_legacy_paths ( Path tmp_path)

Definition at line 82 of file test_option_c_layout.py.

◆ test_scaffold_emits_option_c_dotdir()

tests_scaffold.test_option_c_layout.test_scaffold_emits_option_c_dotdir ( Path tmp_path)

Definition at line 45 of file test_option_c_layout.py.

◆ test_scaffold_oc_status_is_compliant_with_all_pillars()

tests_scaffold.test_option_c_layout.test_scaffold_oc_status_is_compliant_with_all_pillars ( Path tmp_path)

Definition at line 57 of file test_option_c_layout.py.

◆ test_scaffold_oc_status_schema_version_is_v1()

tests_scaffold.test_option_c_layout.test_scaffold_oc_status_schema_version_is_v1 ( Path tmp_path)

Definition at line 72 of file test_option_c_layout.py.