mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed remaining places that needed datasette.urls, closes #1025
This commit is contained in:
parent
0d1763fb2f
commit
091441a444
8 changed files with 15 additions and 14 deletions
|
|
@ -1360,8 +1360,6 @@ def test_metadata_sort_desc(app_client):
|
|||
assert list(reversed(expected)) == rows
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.parametrize("base_url", ["/prefix/", "https://example.com/"])
|
||||
@pytest.mark.parametrize(
|
||||
"path",
|
||||
[
|
||||
|
|
@ -1373,7 +1371,8 @@ def test_metadata_sort_desc(app_client):
|
|||
"/fixtures/facetable",
|
||||
],
|
||||
)
|
||||
def test_base_url_config(base_url, path):
|
||||
def test_base_url_config(path):
|
||||
base_url = "/prefix/"
|
||||
with make_app_client(config={"base_url": base_url}) as client:
|
||||
response = client.get(base_url + path.lstrip("/"))
|
||||
soup = Soup(response.body, "html.parser")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue