mirror of https://github.com/Textualize/rich.git
add check for getting item
This commit is contained in:
parent
972eaceade
commit
3853be1e39
|
@ -50,10 +50,12 @@ def check_output(output_file: str, output: str) -> None:
|
||||||
|
|
||||||
def test_live_state() -> None:
|
def test_live_state() -> None:
|
||||||
|
|
||||||
with Live() as live:
|
with Live("") as live:
|
||||||
assert live.is_started
|
assert live.is_started
|
||||||
live.start()
|
live.start()
|
||||||
|
|
||||||
|
assert live.item == ""
|
||||||
|
|
||||||
assert live.is_started
|
assert live.is_started
|
||||||
live.stop()
|
live.stop()
|
||||||
assert not live.is_started
|
assert not live.is_started
|
||||||
|
|
Loading…
Reference in New Issue