5.3.1.22.10.4. cli.pre_commit_scripts.check_test_files.TestFiles
- class cli.pre_commit_scripts.check_test_files.TestFiles
Bases:
ABCAbstract base class for test file handling logic.
- abstractmethod check_for_missing_test_files(verbose: int = 0) int
Check that all required test files exist.
- Parameters:
verbose – Verbosity level.
- Returns:
The number of missing test files.
- abstractmethod check_style(verbose: int = 0) int
Check all test files for style requirements.
- Parameters:
verbose – Verbosity level.
- Returns:
The number of style errors detected.
- abstractmethod check_test_files(verbose: int = 0) int
Run checks for all test files.
- Parameters:
verbose – Verbosity level.
- Returns:
The number of errors detected during checks.
- echo_feedback(err: int, verbose: int = 0) None
Print feedback to the user about test file presence.
- Parameters:
err – The number of errors found.
verbose – Verbosity level.
- abstract property test_type: str
Type of test (e.g., ‘Python’, ‘C’).
- Returns:
A string representing the type of tests handled by the subclass.