mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
static_mounts mechanism works again, refs #272
This commit is contained in:
parent
8a1a15d725
commit
eb06e59332
3 changed files with 15 additions and 2 deletions
|
|
@ -82,6 +82,7 @@ def make_app_client(
|
|||
is_immutable=False,
|
||||
extra_databases=None,
|
||||
inspect_data=None,
|
||||
static_mounts=None,
|
||||
):
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
filepath = os.path.join(tmpdir, filename)
|
||||
|
|
@ -123,6 +124,7 @@ def make_app_client(
|
|||
plugins_dir=plugins_dir,
|
||||
config=config,
|
||||
inspect_data=inspect_data,
|
||||
static_mounts=static_mounts,
|
||||
)
|
||||
ds.sqlite_functions.append(("sleep", 1, lambda n: time.sleep(float(n))))
|
||||
client = TestClient(ds.app())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue