Applied Black

This commit is contained in:
Simon Willison 2020-10-07 15:51:25 -07:00
commit b47ac37114

View file

@ -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