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:

True if runner is coverage otherwise False

Return type:

bool

See also

Detecting runner

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