mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
simplify test
This commit is contained in:
@@ -14,12 +14,9 @@ class RefreshApp(App[float]):
|
|||||||
|
|
||||||
def _automatic_refresh(self):
|
def _automatic_refresh(self):
|
||||||
self.count += 1
|
self.count += 1
|
||||||
super()._automatic_refresh()
|
|
||||||
|
|
||||||
def refresh(self, *, repaint: bool = True, layout: bool = False) -> None:
|
|
||||||
super().refresh(repaint=repaint, layout=layout)
|
|
||||||
if self.count == 3:
|
if self.count == 3:
|
||||||
self.exit(time() - self.start)
|
self.exit(time() - self.start)
|
||||||
|
super()._automatic_refresh()
|
||||||
|
|
||||||
|
|
||||||
def test_auto_refresh():
|
def test_auto_refresh():
|
||||||
|
|||||||
Reference in New Issue
Block a user