simplify test

This commit is contained in:
Will McGugan
2022-08-18 10:49:46 +01:00
parent 015c4e86c7
commit 48468e2576

View File

@@ -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():