mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Remove hashed URL mode
Also simplified how view class routing works. Refs #1661
This commit is contained in:
parent
30e5f0e67c
commit
d4f60c2388
12 changed files with 79 additions and 266 deletions
|
|
@ -2,7 +2,6 @@ from datasette.utils import detect_json1
|
|||
from datasette.utils.sqlite import sqlite_version
|
||||
from .fixtures import ( # noqa
|
||||
app_client,
|
||||
app_client_with_hash,
|
||||
app_client_with_trace,
|
||||
app_client_returned_rows_matches_page_size,
|
||||
generate_compound_rows,
|
||||
|
|
@ -41,13 +40,6 @@ def test_table_not_exists_json(app_client):
|
|||
} == app_client.get("/fixtures/blah.json").json
|
||||
|
||||
|
||||
def test_jsono_redirects_to_shape_objects(app_client_with_hash):
|
||||
response_1 = app_client_with_hash.get("/fixtures/simple_primary_key.jsono")
|
||||
response = app_client_with_hash.get(response_1.headers["Location"])
|
||||
assert response.status == 302
|
||||
assert response.headers["Location"].endswith("?_shape=objects")
|
||||
|
||||
|
||||
def test_table_shape_arrays(app_client):
|
||||
response = app_client.get("/fixtures/simple_primary_key.json?_shape=arrays")
|
||||
assert [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue