mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Always pop as_format off args dict (#603)
Closes #563. Thanks, @chris48s
This commit is contained in:
parent
a5d4f166a5
commit
ca44cc03e3
2 changed files with 11 additions and 0 deletions
|
|
@ -1107,6 +1107,15 @@ def test_row(app_client):
|
|||
assert [{"id": "1", "content": "hello"}] == response.json["rows"]
|
||||
|
||||
|
||||
def test_row_format_in_querystring(app_client):
|
||||
# regression test for https://github.com/simonw/datasette/issues/563
|
||||
response = app_client.get(
|
||||
"/fixtures/simple_primary_key/1?_format=json&_shape=objects"
|
||||
)
|
||||
assert response.status == 200
|
||||
assert [{"id": "1", "content": "hello"}] == response.json["rows"]
|
||||
|
||||
|
||||
def test_row_strange_table_name(app_client):
|
||||
response = app_client.get(
|
||||
"/fixtures/table%2Fwith%2Fslashes.csv/3.json?_shape=objects"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue