Tests for the logs Module

Tests for the logs module.

Tests for the logs.get_logger Submodule

Tests for scripts.logs.get_logger.

Frustratingly, because of the way PyTest, logging, and the parent/child relationship interact, it is difficult to test the undelying handler. For the time being, we suffice to test that the logger exists, is enabled, and has the correct name.

tests.logs.test_get_logger.test_logger_enabled(tmpdir: pathlib.Path) None

It returns an enabled logger.

tests.logs.test_get_logger.test_logger_named(tmpdir: pathlib.Path) None

It returns a logger with the correct name.

tests.logs.test_get_logger.test_returns_logger(tmpdir: pathlib.Path) None

It returns a logger.