mirror of
https://github.com/simonw/datasette.git
synced 2026-06-06 09:07:00 +02:00
parent
c0153386ef
commit
d23b32c3e5
4 changed files with 5 additions and 14 deletions
|
|
@ -22,12 +22,7 @@ def ds_write(tmp_path_factory):
|
|||
ds = Datasette([db_path], immutables=[db_path_immutable])
|
||||
ds.root_enabled = True
|
||||
yield ds
|
||||
# Close both setup connections plus any Datasette-managed connections.
|
||||
db1.close()
|
||||
db2.close()
|
||||
for database in ds.databases.values():
|
||||
if not database.is_memory:
|
||||
database.close()
|
||||
ds.close()
|
||||
|
||||
|
||||
def write_token(ds, actor_id="root", permissions=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue