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

Function test_download_progress_uses_decimal_units

tests/test_progress.py:152–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151
152def test_download_progress_uses_decimal_units() -> None:
153 column = DownloadColumn()
154 test_task = Task(1, "test", 1000, 500, _get_time=lambda: 1.0)
155 rendered_progress = str(column.render(test_task))
156 expected = "0.5/1.0 kB"
157 assert rendered_progress == expected
158
159
160def test_download_progress_uses_binary_units() -> None:

Callers

nothing calls this directly

Calls 3

renderMethod · 0.95
DownloadColumnClass · 0.90
TaskClass · 0.90

Tested by

no test coverage detected