MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_formatter_without_name

Function test_formatter_without_name

tests/unit/test_log_config.py:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def test_formatter_without_name() -> None:
55 formatter = CrawleeLogFormatter(include_logger_name=False)
56 record = get_log_record(logging.INFO, 'Info message without name')
57 formatted_message = formatter.format(record)
58 assert formatted_message == '\x1b[32mINFO \x1b[0m Info message without name'

Callers

nothing calls this directly

Calls 3

formatMethod · 0.95
CrawleeLogFormatterClass · 0.90
get_log_recordFunction · 0.85

Tested by

no test coverage detected