Don't use pytest_asyncio.fixture(scope="session") any more, refs #1959

Also got rid of the weird memory=False hack:

https://github.com/simonw/datasette/pull/1960#issuecomment-1354053151
This commit is contained in:
Simon Willison 2022-12-15 17:38:22 -08:00
commit d94d363ec0
3 changed files with 14 additions and 13 deletions

View file

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