Skip to content

Commit

Permalink
update pyodide test to use query endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Jul 9, 2024
1 parent f3b95aa commit da1eb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-in-pyodide-with-shot-scraper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ async () => {
import setuptools
from datasette.app import Datasette
ds = Datasette(memory=True, settings={'num_sql_threads': 0})
(await ds.client.get('/_memory.json?sql=select+55+as+itworks&_shape=array')).text
(await ds.client.get('/_memory/-/query.json?sql=select+55+as+itworks&_shape=array')).text
\`);
if (JSON.parse(output)[0].itworks != 55) {
throw 'Got ' + output + ', expected itworks: 55';
}
return 'Test passed!';
}
"
"

0 comments on commit da1eb18

Please sign in to comment.