mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
Change decimal_suffix param to binary_units
This commit is contained in:
parent
ca493491e4
commit
9982ce394a
3 changed files with 10 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue