mass renaming

This commit is contained in:
Will McGugan
2023-02-13 15:09:40 +00:00
parent e75024ef58
commit 6b5015b266
12 changed files with 85 additions and 87 deletions

View File

@@ -45,8 +45,8 @@ async def test_installed_screens():
async def test_screens():
app = App()
# There should be nothing in the children since the app hasn't run yet
assert not app._nodes
assert not app.children
assert not app.children_view
app._set_active()
with pytest.raises(ScreenStackError):
@@ -63,8 +63,8 @@ async def test_screens():
app.install_screen(screen2, "screen2")
# Installing a screen does not add it to the DOM
assert not app._nodes
assert not app.children
assert not app.children_view
# Check they are installed
assert app.is_screen_installed("screen1")
@@ -91,21 +91,21 @@ async def test_screens():
# Check it is current
assert app.screen is screen1
# There should be one item in the children view
assert app.children_view == (screen1,)
assert app.children == (screen1,)
# Switch to another screen
app.switch_screen("screen2")
# Check it has changed the stack and that it is current
assert app.screen_stack == [screen2]
assert app.screen is screen2
assert app.children_view == (screen2,)
assert app.children == (screen2,)
# Push another screen
app.push_screen("screen3")
assert app.screen_stack == [screen2, screen3]
assert app.screen is screen3
# Only the current screen is in children_view
assert app.children_view == (screen3,)
assert app.children == (screen3,)
# Pop a screen
assert app.pop_screen() is screen3