mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Include views in SQL autocomplete, refs #1897
This commit is contained in:
parent
52bf222d48
commit
83a6872d1b
2 changed files with 5 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ def test_execute_sql(metadata):
|
|||
schema_json = schema_re.search(response_text).group(1)
|
||||
schema = json.loads(schema_json)
|
||||
assert set(schema["attraction_characteristic"]) == {"name", "pk"}
|
||||
assert schema["paginated_view"] == []
|
||||
assert form_fragment in response_text
|
||||
query_response = client.get("/fixtures?sql=select+1", cookies=cookies)
|
||||
assert query_response.status == 200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue