MCPcopy
hub / github.com/apache/airflow / test_format

Method test_format

tests/utils/log/test_json_formatter.py:50–56  ·  view source on GitHub ↗

Test format method from JSONFormatter

(self)

Source from the content-addressed store, hash-verified

48 assert not json_fmt_no_asctime.usesTime()
49
50 def test_format(self):
51 """
52 Test format method from JSONFormatter
53 """
54 log_record = makeLogRecord({"label": "value"})
55 json_fmt = JSONFormatter(json_fields=["label"])
56 assert json_fmt.format(log_record) == '{"label": "value"}'
57
58 def test_format_with_extras(self):
59 """

Callers

nothing calls this directly

Calls 2

formatMethod · 0.95
JSONFormatterClass · 0.90

Tested by

no test coverage detected