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

Function test_task_progress_column_speed

tests/test_progress.py:673–684  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671
672
673def test_task_progress_column_speed() -> None:
674 speed_text = TaskProgressColumn.render_speed(None)
675 assert speed_text.plain == ""
676
677 speed_text = TaskProgressColumn.render_speed(5)
678 assert speed_text.plain == "5.0 it/s"
679
680 speed_text = TaskProgressColumn.render_speed(5000)
681 assert speed_text.plain == "5.0×10³ it/s"
682
683 speed_text = TaskProgressColumn.render_speed(8888888)
684 assert speed_text.plain == "8.9×10⁶ it/s"
685
686
687if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

render_speedMethod · 0.80

Tested by

no test coverage detected