Skip to content

Commit a0d4587

Browse files
committed
test fixes
1 parent 326e6c4 commit a0d4587

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

src/textual/app.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,6 @@ class MyApp(App[None]):
462462
SUSPENDED_SCREEN_CLASS: ClassVar[str] = ""
463463
"""Class to apply to suspended screens, or empty string for no class."""
464464

465-
HOVER_EFFECTS_SCROLL_PAUSE: ClassVar[float] = 0.02
466-
"""Seconds to pause hover effects for when scrolling."""
467-
468465
_PSEUDO_CLASSES: ClassVar[dict[str, Callable[[App[Any]], bool]]] = {
469466
"focus": lambda app: app.app_focus,
470467
"blur": lambda app: not app.app_focus,
@@ -2824,8 +2821,6 @@ def _set_mouse_over(self, widget: Widget | None) -> None:
28242821
Args:
28252822
widget: Widget under mouse, or None for no widgets.
28262823
"""
2827-
if widget is not None and widget.is_scrolling:
2828-
return
28292824
if widget is None:
28302825
if self.mouse_over is not None:
28312826
try:

tests/css/test_nested_css.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ async def test_lists_of_selectors_in_nested_css() -> None:
7272
class DeclarationAfterNestedApp(App[None]):
7373
CSS = """
7474
Screen {
75+
background: green;
7576
Label {
7677
background: red;
77-
}
78-
background: green;
78+
}
7979
}
8080
"""
8181

tests/snapshot_tests/snapshot_apps/dock_scroll_off_by_one.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class ScrollOffByOne(App):
66
AUTO_FOCUS = None
7-
HOVER_EFFECTS_SCROLL_PAUSE = 0.0
87

98
def compose(self) -> ComposeResult:
109
for number in range(1, 100):

tests/snapshot_tests/snapshot_apps/scroll_to.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class ScrollOffByOne(App):
66
"""Scroll to item 50."""
77

88
AUTO_FOCUS = None
9-
HOVER_EFFECTS_SCROLL_PAUSE = 0
109

1110
def compose(self) -> ComposeResult:
1211
for number in range(1, 100):

tests/test_lazy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ async def test_lazy_reveal():
3939
async with app.run_test() as pilot:
4040
# No #foo on initial mount
4141

42-
# Only first child should be visible initially
42+
# Only first child should be available initially
4343
assert app.query_one("#foo").display
44-
assert not app.query_one("#bar").display
45-
assert not app.query_one("#baz").display
44+
# Next two aren't mounted yet
45+
assert not app.query("#bar")
46+
assert not app.query("#baz")
4647

4748
# All children should be visible after a pause
4849
await pilot.pause()

0 commit comments

Comments
 (0)