mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
--cors for /name.db downloads, refs #1057
This commit is contained in:
parent
e5f5034bcd
commit
c3aba4aa98
4 changed files with 19 additions and 5 deletions
|
|
@ -227,7 +227,7 @@ def app_client_with_dot():
|
|||
|
||||
@pytest.fixture(scope="session")
|
||||
def app_client_with_cors():
|
||||
with make_app_client(cors=True) as client:
|
||||
with make_app_client(is_immutable=True, cors=True) as client:
|
||||
yield client
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1739,6 +1739,7 @@ def test_trace(app_client):
|
|||
@pytest.mark.parametrize(
|
||||
"path,status_code",
|
||||
[
|
||||
("/fixtures.db", 200),
|
||||
("/fixtures.json", 200),
|
||||
("/fixtures/no_primary_key.json", 200),
|
||||
# A 400 invalid SQL query should still have the header:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue