mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
skip_csrf(datasette, scope) plugin hook, refs #1377
This commit is contained in:
parent
4a3e8561ab
commit
b1fd24ac9f
8 changed files with 68 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ EXPECTED_PLUGINS = [
|
|||
"register_magic_parameters",
|
||||
"register_routes",
|
||||
"render_cell",
|
||||
"skip_csrf",
|
||||
"startup",
|
||||
"table_actions",
|
||||
],
|
||||
|
|
@ -152,6 +153,7 @@ def make_app_client(
|
|||
static_mounts=static_mounts,
|
||||
template_dir=template_dir,
|
||||
crossdb=crossdb,
|
||||
pdb=True,
|
||||
)
|
||||
ds.sqlite_functions.append(("sleep", 1, lambda n: time.sleep(float(n))))
|
||||
yield TestClient(ds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue