removed cruft

This commit is contained in:
Will McGugan
2022-08-17 09:33:46 +01:00
parent 40374984ed
commit 4b596352d9
4 changed files with 19 additions and 11 deletions

View File

@@ -64,6 +64,16 @@ async def test_screens():
assert app.screen is screen2
assert app.screen_stack == [screen2]
# Uninstall screens
app.uninstall_screen(screen1)
assert not app.is_screen_installed(screen1)
app.uninstall_screen("screen3")
assert not app.is_screen_installed(screen1)
# Check we can't uninstall a screen on the stack
with pytest.raises(ScreenStackError):
app.uninstall_screen(screen2)
# Check we can't pop last screen
with pytest.raises(ScreenStackError):
app.pop_screen()