From fc4ee698caaff7ca810dcf4871d49800f300bc80 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 13 Dec 2022 10:44:55 +0000 Subject: [PATCH] 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. --- tests/test_binding_inheritance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_binding_inheritance.py b/tests/test_binding_inheritance.py index 0b48b5bd8..754cb41ab 100644 --- a/tests/test_binding_inheritance.py +++ b/tests/test_binding_inheritance.py @@ -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()) == []