Added test for batch update

This commit is contained in:
Will McGugan
2023-02-18 10:22:29 +00:00
parent 00de6b5b9d
commit b9375c5a14

12
tests/test_app.py Normal file
View File

@@ -0,0 +1,12 @@
from textual.app import App
def test_batch_update():
app = App()
assert app._batch_count == 0
with app.batch_update():
assert app._batch_count == 1
with app.batch_update():
assert app._batch_count == 2
assert app._batch_count == 1
assert app._batch_count == 0