Ported test_api.py app_client test to ds_client, refs #1959

This commit is contained in:
Simon Willison 2022-12-15 13:44:48 -08:00
commit b077e63dc6
4 changed files with 156 additions and 80 deletions

View file

@ -281,7 +281,7 @@ class Datasette:
raise
self.crossdb = crossdb
self.nolock = nolock
if memory or crossdb or not self.files:
if memory or crossdb or (not self.files and memory is not False):
self.add_database(
Database(self, is_mutable=False, is_memory=True), name="_memory"
)