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

Function test_formatted_message

tests/unit/test_log_config.py:33–37  ·  view source on GitHub ↗
(level: int, msg: str, expected: str)

Source from the content-addressed store, hash-verified

31 ids=['debug', 'info', 'warning', 'error'],
32)
33def test_formatted_message(level: int, msg: str, expected: str) -> None:
34 formatter = CrawleeLogFormatter()
35 record = get_log_record(level, msg)
36 formatted_message = formatter.format(record)
37 assert formatted_message == expected
38
39
40def test_formatting_with_exception() -> None:

Callers

nothing calls this directly

Calls 3

formatMethod · 0.95
CrawleeLogFormatterClass · 0.90
get_log_recordFunction · 0.85

Tested by

no test coverage detected