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

Function test_task_create

tests/test_progress.py:411–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409
410
411def test_task_create() -> None:
412 task = Task(TaskID(1), "foo", 100, 0, _get_time=lambda: 1)
413 assert task.elapsed is None
414 assert not task.finished
415 assert task.percentage == 0.0
416 assert task.speed is None
417 assert task.time_remaining is None
418
419
420def test_task_start() -> None:

Callers

nothing calls this directly

Calls 1

TaskClass · 0.90

Tested by

no test coverage detected