mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
481eb96d85
commit
a3e6f1b167
2 changed files with 4 additions and 5 deletions
|
|
@ -695,10 +695,8 @@ def test_query_error(app_client):
|
|||
response = app_client.get("/fixtures?sql=select+*+from+notatable")
|
||||
html = response.text
|
||||
assert '<p class="message-error">no such table: notatable</p>' in html
|
||||
assert (
|
||||
'<textarea id="sql-editor" name="sql">select * from notatable</textarea>'
|
||||
in html
|
||||
)
|
||||
assert '<textarea id="sql-editor" name="sql" style="height: 3em' in html
|
||||
assert ">select * from notatable</textarea>" in html
|
||||
assert "0 results" not in html
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue