Snapshot testing footer

This commit is contained in:
Darren Burns
2022-10-24 12:39:33 +01:00
parent 67c3b83f80
commit f09e5f7d9f
3 changed files with 234 additions and 59 deletions

View File

@@ -4,7 +4,16 @@ from textual.widgets import Footer
class FooterApp(App):
BINDINGS = [Binding(key="q", action="quit", description="Quit the app")]
BINDINGS = [
Binding(key="q", action="quit", description="Quit the app"),
Binding(
key="question_mark",
action="help",
description="Show help screen",
key_display="?",
),
Binding(key="j", action="down", description="Scroll down", show=False),
]
def compose(self) -> ComposeResult:
yield Footer()