Remove redundant app check in test relating to a widget

It made sense to do this extra step as I was finding my way with these
tests, but I don't think it's necessary now.
This commit is contained in:
Dave Pearson
2022-12-13 10:44:55 +00:00
parent f0eb284edb
commit fc4ee698ca

View File

@@ -94,9 +94,8 @@ class NoBindingsAndStaticWidgetNoBindings(App[None]):
reason="Static is incorrectly starting with bindings for movement keys [issue#1343]"
)
async def test_just_app_no_bindings_widget_no_bindings() -> None:
"""A widget with no bindings should have no bindings. Its app should have just ctrl+c"""
"""A widget with no bindings should have no bindings"""
async with NoBindingsAndStaticWidgetNoBindings().run_test() as pilot:
assert list(pilot.app._bindings.keys.keys()) == ["ctrl+c"]
assert list(pilot.app.screen.query_one(Static)._bindings.keys.keys()) == []