tests.test_magicLogger package

Submodules

tests.test_magicLogger.conftest module

tests.test_magicLogger.conftest.log_file_path(tmp_path)[source]

tests.test_magicLogger.test_configuration_basic module

tests.test_magicLogger.test_configuration_basic.test_custom_file_formatter(log_file_path, caplog)[source]
tests.test_magicLogger.test_configuration_basic.test_custom_stream_formatter(log_file_path, capsys)[source]
tests.test_magicLogger.test_configuration_basic.test_file_formatter_is_none(log_file_path, caplog, capsys)[source]
tests.test_magicLogger.test_configuration_basic.test_setup_logger_clears_previous_handlers(log_file_path)[source]
tests.test_magicLogger.test_configuration_basic.test_setup_logger_creates_logger_with_name(log_file_path)[source]
tests.test_magicLogger.test_configuration_basic.test_setup_logger_raises_for_conflicting_file_formatter()[source]
tests.test_magicLogger.test_configuration_basic.test_setup_logger_raises_for_conflicting_stream_formatter()[source]
tests.test_magicLogger.test_configuration_basic.test_setup_logger_sets_handler_levels(log_file_path)[source]
tests.test_magicLogger.test_configuration_basic.test_setup_logger_uses_custom_timed_rotating_kwargs(log_file_path)[source]
tests.test_magicLogger.test_configuration_basic.test_stream_formatter_is_none(log_file_path, capsys)[source]

tests.test_magicLogger.test_formatters module

tests.test_magicLogger.test_formatters.test_colored_formatter_outputs_ansi_and_formatted_fields(log_file_path, level, expected_color, level_name)[source]
tests.test_magicLogger.test_formatters.test_formatters_include_extra_args(log_file_path)[source]
tests.test_magicLogger.test_formatters.test_json_formatter_outputs_valid_json_and_keys(log_file_path)[source]

tests.test_magicLogger.test_integration_logging_io module

tests.test_magicLogger.test_integration_logging_io.test_logging_to_file(log_file_path)[source]

Module contents