Skip to content

Commit ee7416b

Browse files
committed
test fix
1 parent 70bb3e5 commit ee7416b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/test_data_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ def compose(self) -> ComposeResult:
14381438

14391439
def on_mount(self) -> None:
14401440
table = self.query_one(DataTable)
1441-
table.border_title = "[@click=test_link]Border Link[/]"
1441+
table.border_title = "[@click=app.test_link]Border Link[/]"
14421442

14431443
def action_test_link(self) -> None:
14441444
self.link_clicked = True

tests/test_issue_4248.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ async def test_issue_4248() -> None:
1010
bumps = 0
1111

1212
class ActionApp(App[None]):
13-
1413
def compose(self) -> ComposeResult:
1514
yield Label("[@click]click me and crash[/]", id="nothing")
1615
yield Label("[@click=]click me and crash[/]", id="no-params")
1716
yield Label("[@click=()]click me and crash[/]", id="empty-params")
1817
yield Label("[@click=foobar]click me[/]", id="unknown-sans-parens")
1918
yield Label("[@click=foobar()]click me[/]", id="unknown-with-parens")
20-
yield Label("[@click=bump]click me[/]", id="known-sans-parens")
21-
yield Label("[@click=bump()]click me[/]", id="known-empty-parens")
22-
yield Label("[@click=bump(100)]click me[/]", id="known-with-param")
19+
yield Label("[@click=app.bump]click me[/]", id="known-sans-parens")
20+
yield Label("[@click=app.bump()]click me[/]", id="known-empty-parens")
21+
yield Label("[@click=app.bump(100)]click me[/]", id="known-with-param")
2322

2423
def action_bump(self, by_value: int = 1) -> None:
2524
nonlocal bumps

0 commit comments

Comments
 (0)