mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
?_extra= support and TableView refactor to table_view
* Implemented ?_extra= option for JSON views, refs #262 * New dependency: asyncinject * Remove now-obsolete TableView class
This commit is contained in:
parent
56b0758a5f
commit
d97e82df3c
20 changed files with 1593 additions and 1085 deletions
|
|
@ -1160,6 +1160,13 @@ async def test_table_page_title(ds_client, path, expected):
|
|||
assert title == expected
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_table_post_method_not_allowed(ds_client):
|
||||
response = await ds_client.post("/fixtures/facetable")
|
||||
assert response.status_code == 405
|
||||
assert "Method not allowed" in response.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize("allow_facet", (True, False))
|
||||
def test_allow_facet_off(allow_facet):
|
||||
with make_app_client(settings={"allow_facet": allow_facet}) as client:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue