mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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()) == []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user