MCPcopy
hub / github.com/Textualize/rich / test_log_milliseconds

Function test_log_milliseconds

tests/test_console.py:295–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293
294
295def test_log_milliseconds() -> None:
296 def time_formatter(timestamp: datetime) -> Text:
297 return Text("TIME")
298
299 console = Console(
300 file=io.StringIO(), width=40, log_time_format=time_formatter, log_path=False
301 )
302 console.log("foo")
303 result = console.file.getvalue()
304 assert result == "TIME foo \n"
305
306
307def test_print_empty() -> None:

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
ConsoleClass · 0.90

Tested by

no test coverage detected