mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Eliminating changes
This is the one biggish change between the last working test run in GitHub, and now. Tests are still running locally fine, an on GitHub, in the last run, I had one job pass and another fail, both on the same OS, just 3.10 passed and 3.9 failed. The problem still to do with (as far as I can tell) messages inside Textual and some sort of async issue. So let's try this.
This commit is contained in:
@@ -545,7 +545,7 @@ class PriorityOverlapWidget(Static, can_focus=True):
|
|||||||
"""A focusable widget with a priority binding."""
|
"""A focusable widget with a priority binding."""
|
||||||
|
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
Binding("0", "app.record('widget_0')", "0", priority=False),
|
# Binding("0", "app.record('widget_0')", "0", priority=False),
|
||||||
Binding("a", "app.record('widget_a')", "a", priority=False),
|
Binding("a", "app.record('widget_a')", "a", priority=False),
|
||||||
Binding("b", "app.record('widget_b')", "b", priority=False),
|
Binding("b", "app.record('widget_b')", "b", priority=False),
|
||||||
Binding("c", "app.record('widget_c')", "c", priority=True),
|
Binding("c", "app.record('widget_c')", "c", priority=True),
|
||||||
@@ -559,7 +559,7 @@ class PriorityOverlapScreen(Screen):
|
|||||||
"""A screen with a priority binding."""
|
"""A screen with a priority binding."""
|
||||||
|
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
Binding("0", "app.record('screen_0')", "0", priority=False),
|
# Binding("0", "app.record('screen_0')", "0", priority=False),
|
||||||
Binding("a", "app.record('screen_a')", "a", priority=False),
|
Binding("a", "app.record('screen_a')", "a", priority=False),
|
||||||
Binding("b", "app.record('screen_b')", "b", priority=True),
|
Binding("b", "app.record('screen_b')", "b", priority=True),
|
||||||
Binding("c", "app.record('screen_c')", "c", priority=False),
|
Binding("c", "app.record('screen_c')", "c", priority=False),
|
||||||
@@ -579,7 +579,7 @@ class PriorityOverlapApp(AppKeyRecorder):
|
|||||||
"""An application with a priority binding."""
|
"""An application with a priority binding."""
|
||||||
|
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
Binding("0", "record('app_0')", "0", priority=False),
|
# Binding("0", "record('app_0')", "0", priority=False),
|
||||||
Binding("a", "record('app_a')", "a", priority=True),
|
Binding("a", "record('app_a')", "a", priority=True),
|
||||||
Binding("b", "record('app_b')", "b", priority=False),
|
Binding("b", "record('app_b')", "b", priority=False),
|
||||||
Binding("c", "record('app_c')", "c", priority=False),
|
Binding("c", "record('app_c')", "c", priority=False),
|
||||||
@@ -597,10 +597,10 @@ class PriorityOverlapApp(AppKeyRecorder):
|
|||||||
async def test_overlapping_priority_bindings() -> None:
|
async def test_overlapping_priority_bindings() -> None:
|
||||||
"""Test an app stack with overlapping bindings."""
|
"""Test an app stack with overlapping bindings."""
|
||||||
async with PriorityOverlapApp().run_test() as pilot:
|
async with PriorityOverlapApp().run_test() as pilot:
|
||||||
await pilot.press(*"0abcdef")
|
await pilot.press(*"abcdef")
|
||||||
await pilot.pause(2 / 100)
|
await pilot.pause(2 / 100)
|
||||||
assert pilot.app.pressed_keys == [
|
assert pilot.app.pressed_keys == [
|
||||||
"widget_0",
|
# "widget_0",
|
||||||
"app_a",
|
"app_a",
|
||||||
"screen_b",
|
"screen_b",
|
||||||
"widget_c",
|
"widget_c",
|
||||||
|
|||||||
Reference in New Issue
Block a user