Coverage misbehaves¶
Detect runner to adjust logging level inconsistencies
Module private variables
- logging_strict.tech_niques.coverage_misbehaves.__all__: tuple[str] = ("detect_coverage",)¶
This modules exports
Module objects
- logging_strict.tech_niques.coverage_misbehaves.detect_coverage() bool¶
Running by coverage and running by unittest behavior differs!
- Returns:
Trueif runner is coverage otherwiseFalse- Return type:
See also
Todo
why coverage overrides logging.config?
When run by coverage, logging level becomes logging.INFO When run by unittest, logging level is same as logging.config
How to get the same behavior