|
Option C Tools
|
Classes | |
| class | TestFormatChanged |
Functions | |
| bool | _git_available () |
| _git (Path repo, *str args, bool check=True) | |
| Path | _make_format_project (Path tmp_path) |
Purpose
-------
Tests for ``oct format --changed`` (Phase 4C — G-C2).
Responsibilities
----------------
- Verify that ``--changed`` formats only git-modified Python files.
- Verify graceful behaviour in non-git directories.
- Verify JSON output mode with ``--changed``.
Diagnostics
-----------
Domain: FMT-TESTS
Levels:
L2 — test lifecycle
L3 — assertion details
L4 — deep tracing
Contracts
---------
- All tests use tmp_path so they are automatically cleaned up.
|
protected |
|
protected |
Definition at line 43 of file test_format_changed.py.
|
protected |
Create a git repo with pyproject.toml and one committed Python file.
Definition at line 57 of file test_format_changed.py.