mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Better demo plugin for query_actions, refs #2293
This commit is contained in:
parent
86335dc722
commit
5de6797d4a
3 changed files with 10 additions and 6 deletions
|
|
@ -949,10 +949,10 @@ async def test_hook_table_actions(ds_client, table_or_view):
|
|||
@pytest.mark.parametrize(
|
||||
"path,expected_url",
|
||||
(
|
||||
("/fixtures?sql=select+1", "/fixtures/-/explain?sql=select+1"),
|
||||
("/fixtures?sql=select+1", "/fixtures?sql=explain+select+1"),
|
||||
(
|
||||
"/fixtures/pragma_cache_size",
|
||||
"/fixtures/-/explain?sql=PRAGMA+cache_size%3B&query_name=pragma_cache_size",
|
||||
"/fixtures?sql=explain+PRAGMA+cache_size%3B",
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue