Skip to content

Commit ecc6085

Browse files
committed
fix test failures
1 parent 8f15e39 commit ecc6085

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

docs/examples/python/nested_routes.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,13 @@ def messages_with(*names):
6464
messages = [msg for msg in message_data if tuple(msg["with"]) == names]
6565
return html.div(
6666
html.h1(f"Messages with {', '.join(names)} 💬"),
67-
html.ul(
68-
[
69-
html.li(
70-
{"key": msg["id"]},
71-
f"{msg['from'] or 'You'}: {msg['message']}",
72-
)
73-
for msg in messages
74-
]
75-
),
67+
html.ul([
68+
html.li(
69+
{"key": msg["id"]},
70+
f"{msg['from'] or 'You'}: {msg['message']}",
71+
)
72+
for msg in messages
73+
]),
7674
)
7775

7876

docs/examples/python/route_parameters.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,13 @@ def messages_with():
6262
messages = [msg for msg in message_data if tuple(msg["with"]) == names]
6363
return html.div(
6464
html.h1(f"Messages with {', '.join(names)} 💬"),
65-
html.ul(
66-
[
67-
html.li(
68-
{"key": msg["id"]},
69-
f"{msg['from'] or 'You'}: {msg['message']}",
70-
)
71-
for msg in messages
72-
]
73-
),
65+
html.ul([
66+
html.li(
67+
{"key": msg["id"]},
68+
f"{msg['from'] or 'You'}: {msg['message']}",
69+
)
70+
for msg in messages
71+
]),
7472
)
7573

7674

tests/test_router.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def sample():
141141
("/first/1/second/2", {"first": "1", "second": "2"}),
142142
("/first/1/second/2/third/3", {"first": "1", "second": "2", "third": "3"}),
143143
]:
144+
expected_params = _expected_params
144145
await display.goto(path)
145146
await display.page.wait_for_selector("#success")
146147

0 commit comments

Comments
 (0)