Option C Tools
Loading...
Searching...
No Matches
tests_health.test_lint_health Namespace Reference

Functions

 test_lint_health_all_compliant (Path temp_project_root, LinterContext linter_ctx)
 test_lint_health_partial_compliance (Path temp_project_root, LinterContext linter_ctx)
 test_lint_health_empty_project (Path temp_project_root, LinterContext linter_ctx)
 test_lint_health_check_categories (Path temp_project_root, LinterContext linter_ctx)
 test_lint_health_verbose_includes_files (Path temp_project_root, LinterContext linter_ctx)
 test_lint_health_verbose_shows_failures (Path temp_project_root, LinterContext linter_ctx)

Detailed Description

Tests for lint health check.

Purpose
-------
Verify that check_lint_health correctly aggregates linter results.

Responsibilities
----------------
- Test fully compliant projects.
- Test partially compliant projects.
- Test empty projects.
- Test verbose mode file details.

Diagnostics
-----------
Domain: TESTS.HEALTH
Levels:
    L2 — test lifecycle
    L3 — lint aggregation verification
    L4 — per-check count validation

Contracts
---------
- Compliance percentage is calculated correctly.
- Per-check pass counts match actual results.
- Verbose mode includes per-file breakdown.

Function Documentation

◆ test_lint_health_all_compliant()

tests_health.test_lint_health.test_lint_health_all_compliant ( Path temp_project_root,
LinterContext linter_ctx )
Test 100% compliance when all files pass.

Definition at line 42 of file test_lint_health.py.

◆ test_lint_health_check_categories()

tests_health.test_lint_health.test_lint_health_check_categories ( Path temp_project_root,
LinterContext linter_ctx )
Test that all check categories are reported.

Definition at line 76 of file test_lint_health.py.

◆ test_lint_health_empty_project()

tests_health.test_lint_health.test_lint_health_empty_project ( Path temp_project_root,
LinterContext linter_ctx )
Test health check on project with no Python files.

Definition at line 67 of file test_lint_health.py.

◆ test_lint_health_partial_compliance()

tests_health.test_lint_health.test_lint_health_partial_compliance ( Path temp_project_root,
LinterContext linter_ctx )
Test mixed compliance results.

Definition at line 53 of file test_lint_health.py.

◆ test_lint_health_verbose_includes_files()

tests_health.test_lint_health.test_lint_health_verbose_includes_files ( Path temp_project_root,
LinterContext linter_ctx )
Test that verbose mode includes per-file details.

Definition at line 90 of file test_lint_health.py.

◆ test_lint_health_verbose_shows_failures()

tests_health.test_lint_health.test_lint_health_verbose_shows_failures ( Path temp_project_root,
LinterContext linter_ctx )
Test that verbose mode shows failed checks per file.

Definition at line 101 of file test_lint_health.py.