From da1eb18207304be2a6114e350708059abad20251 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Tue, 9 Jul 2024 08:51:35 -0700 Subject: [PATCH] update pyodide test to use query endpoint --- test-in-pyodide-with-shot-scraper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-in-pyodide-with-shot-scraper.sh b/test-in-pyodide-with-shot-scraper.sh index 5845a0c3fd..4d1c496857 100755 --- a/test-in-pyodide-with-shot-scraper.sh +++ b/test-in-pyodide-with-shot-scraper.sh @@ -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!'; } -" \ No newline at end of file +"