Skip to content

Commit 43a3685

Browse files
committed
huh
1 parent 903679f commit 43a3685

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

tests/units/test_app.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,16 +298,11 @@ def test_add_page_invalid_api_route(app: App, index_page):
298298
app: The app to test.
299299
index_page: The index page.
300300
"""
301-
with pytest.raises(ValueError):
302-
app.add_page(index_page, route="api")
303-
with pytest.raises(ValueError):
304-
app.add_page(index_page, route="/api")
305-
with pytest.raises(ValueError):
306-
app.add_page(index_page, route="/api/")
307-
with pytest.raises(ValueError):
308-
app.add_page(index_page, route="api/foo")
309-
with pytest.raises(ValueError):
310-
app.add_page(index_page, route="/api/foo")
301+
app.add_page(index_page, route="api")
302+
app.add_page(index_page, route="/api")
303+
app.add_page(index_page, route="/api/")
304+
app.add_page(index_page, route="api/foo")
305+
app.add_page(index_page, route="/api/foo")
311306
# These should be fine
312307
app.add_page(index_page, route="api2")
313308
app.add_page(index_page, route="/foo/api")

tests/units/test_route.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ def test_catchall_in_route(route_name, expected):
5050
"route_name",
5151
[
5252
"/products",
53-
"/products/[category]/[...]/details/[version]",
54-
"[...]",
5553
"/products/details",
5654
],
5755
)
@@ -62,6 +60,8 @@ def test_verify_valid_routes(route_name):
6260
@pytest.mark.parametrize(
6361
"route_name",
6462
[
63+
"/products/[category]/[...]/details/[version]",
64+
"[...]",
6565
"/products/[...]/details/[category]/latest",
6666
"/blog/[...]/post/[year]/latest",
6767
"/products/[...]/details/[...]/[category]/[...]/latest",

0 commit comments

Comments
 (0)