mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Remove JSON rel=alternate from some pages, closes #1623
This commit is contained in:
parent
8d5779acf0
commit
23a09b0f6a
2 changed files with 18 additions and 0 deletions
|
|
@ -922,3 +922,15 @@ def test_alternate_url_json(app_client, path, expected):
|
|||
)
|
||||
in response.text
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"path",
|
||||
("/-/patterns", "/-/messages", "/-/allow-debug", "/fixtures.db"),
|
||||
)
|
||||
def test_no_alternate_url_json(app_client, path):
|
||||
response = app_client.get(path)
|
||||
assert "link" not in response.headers
|
||||
assert (
|
||||
'<link rel="alternate" type="application/json+datasette"' not in response.text
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue