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

Function test_download_progress_uses_binary_units

tests/test_progress.py:160–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159
160def test_download_progress_uses_binary_units() -> None:
161 column = DownloadColumn(binary_units=True)
162 test_task = Task(1, "test", 1024, 512, _get_time=lambda: 1.0)
163 rendered_progress = str(column.render(test_task))
164 expected = "0.5/1.0 KiB"
165 assert rendered_progress == expected
166
167
168def test_task_ids():

Callers

nothing calls this directly

Calls 3

renderMethod · 0.95
DownloadColumnClass · 0.90
TaskClass · 0.90

Tested by

no test coverage detected