|
Option C Tools
|
Classes | |
| class | TestLintChanged |
Functions | |
| bool | _git_available () |
| _git (Path repo, *str args, bool check=True) | |
| Path | _make_lint_project (Path tmp_path) |
Purpose
-------
Regression tests for ``oct lint --changed`` (Phase 4C — G-C4).
Responsibilities
----------------
- Verify the Phase 4A ``_git_changed_files`` shim still works.
- Verify that ``--changed`` lints only git-modified Python files.
- Verify graceful fallback in non-git directories.
Diagnostics
-----------
Domain: LINT-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_lint_changed.py.
|
protected |
Create a git repo with pyproject.toml and one committed Python file.
Definition at line 57 of file test_lint_changed.py.