mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
909e66dfdb
commit
21b57cdf9a
3 changed files with 18 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ def make_app_client(
|
|||
filename="fixtures.db",
|
||||
is_immutable=False,
|
||||
extra_databases=None,
|
||||
inspect_data=None,
|
||||
):
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
filepath = os.path.join(tmpdir, filename)
|
||||
|
|
@ -71,6 +72,7 @@ def make_app_client(
|
|||
metadata=METADATA,
|
||||
plugins_dir=plugins_dir,
|
||||
config=config,
|
||||
inspect_data=inspect_data,
|
||||
)
|
||||
ds.sqlite_functions.append(("sleep", 1, lambda n: time.sleep(float(n))))
|
||||
client = TestClient(ds.app().test_client)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue