mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Applied Black
This commit is contained in:
parent
5070425817
commit
b47ac37114
1 changed files with 8 additions and 5 deletions
|
|
@ -64,11 +64,14 @@ def test_redirect2(custom_pages_client):
|
||||||
assert "/example" == response.headers["Location"]
|
assert "/example" == response.headers["Location"]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("path,expected", [
|
@pytest.mark.parametrize(
|
||||||
("/route_Sally", "<p>Hello from Sally</p>"),
|
"path,expected",
|
||||||
("/topic_python", "Topic page for python"),
|
[
|
||||||
("/topic_python/info", "Slug: info, Topic: python"),
|
("/route_Sally", "<p>Hello from Sally</p>"),
|
||||||
])
|
("/topic_python", "Topic page for python"),
|
||||||
|
("/topic_python/info", "Slug: info, Topic: python"),
|
||||||
|
],
|
||||||
|
)
|
||||||
def test_custom_route_pattern(custom_pages_client, path, expected):
|
def test_custom_route_pattern(custom_pages_client, path, expected):
|
||||||
response = custom_pages_client.get(path)
|
response = custom_pages_client.get(path)
|
||||||
assert response.status == 200
|
assert response.status == 200
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue