Option C Tools
Loading...
Searching...
No Matches
tests_linter.test_regression Namespace Reference

Functions

 test_docstring_not_overwritten (Path temp_project_root, oct_lint.LinterContext linter_ctx)
 test_encoding_not_overwritten (Path temp_project_root, oct_lint.LinterContext linter_ctx)

Detailed Description

Purpose
-------
Ensure previously fixed bugs never reappear.

Responsibilities
----------------
- Test scenarios that historically caused linter failures.
- Validate docstring preservation.
- Validate encoding preservation.
- Validate correct handling of tricky edge cases.

Diagnostics
-----------
Domain: LINTER-TESTS
Levels:
    L2 — lifecycle
    L3 — semantic details
    L4 — deep tracing

Contracts
---------
- Must encode each regression as a permanent test.
- Must ensure fixes remain stable across refactors.
- Must not modify fixture files.

Function Documentation

◆ test_docstring_not_overwritten()

tests_linter.test_regression.test_docstring_not_overwritten ( Path temp_project_root,
oct_lint.LinterContext linter_ctx )

Definition at line 36 of file test_regression.py.

◆ test_encoding_not_overwritten()

tests_linter.test_regression.test_encoding_not_overwritten ( Path temp_project_root,
oct_lint.LinterContext linter_ctx )

Definition at line 47 of file test_regression.py.