Change decimal_suffix param to binary_units

This commit is contained in:
amartya-dev 2020-10-14 19:47:22 +05:30
parent ca493491e4
commit 9982ce394a
3 changed files with 10 additions and 10 deletions

View file

@ -90,7 +90,7 @@ def test_download_progress_uses_decimal_units() -> None:
def test_download_progress_uses_binary_units() -> None:
column = DownloadColumn(decimal_suffix=False)
column = DownloadColumn(binary_units=True)
test_task = Task(1, "test", 1024, 512, _get_time=lambda: 1.0)
rendered_progress = str(column.render(test_task))
expected = "0.5/1.0 KiB"