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

Function test_bar_columns

tests/test_progress.py:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def test_bar_columns():
55 bar_column = BarColumn(100)
56 assert bar_column.bar_width == 100
57 task = Task(1, "test", 100, 20, _get_time=lambda: 1.0)
58 bar = bar_column(task)
59 assert isinstance(bar, ProgressBar)
60 assert bar.completed == 20
61 assert bar.total == 100
62
63
64def test_text_column():

Callers

nothing calls this directly

Calls 2

BarColumnClass · 0.90
TaskClass · 0.90

Tested by

no test coverage detected