Option C Tools
Loading...
Searching...
No Matches
tests_git.test_git_health Namespace Reference

Classes

class  TestGitHealth

Variables

 pytestmark

Detailed Description

Purpose
-------
Tests for the git health section in ``oct health`` (Phase 4E — G-E5, G-E10).

Responsibilities
----------------
- Validate ``check_git_health`` returns correct statuses.
- Verify graceful degradation when git is absent or not a repo.

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

Contracts
---------
- Uses ``temp_git_project`` fixture for real git repo scenarios.
- Non-repo scenarios use bare tmp_path.

Variable Documentation

◆ pytestmark

tests_git.test_git_health.pytestmark
Initial value:
1= pytest.mark.skipif(
2 not _git_available(), reason="git binary not available on PATH",
3)

Definition at line 38 of file test_git_health.py.