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

Function test_compact_time_remaining_column

tests/test_progress.py:106–110  ·  view source on GitHub ↗
(task_time, formatted)

Source from the content-addressed store, hash-verified

104 ],
105)
106def test_compact_time_remaining_column(task_time, formatted):
107 task = SimpleNamespace(finished=False, time_remaining=task_time, total=100)
108 column = TimeRemainingColumn(compact=True)
109
110 assert str(column.render(task)) == formatted
111
112
113def test_time_remaining_column_elapsed_when_finished():

Callers

nothing calls this directly

Calls 2

renderMethod · 0.95
TimeRemainingColumnClass · 0.90

Tested by

no test coverage detected