mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Support for :memory: databases
If you start Datasette with no files, it will connect to :memory: instead. When starting it with files you can add --memory to also get a :memory: database.
This commit is contained in:
parent
bf6b0f918d
commit
9743e1d91b
6 changed files with 90 additions and 33 deletions
|
|
@ -65,6 +65,14 @@ def app_client():
|
|||
yield from make_app_client()
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def app_client_no_files():
|
||||
ds = Datasette([])
|
||||
client = TestClient(ds.app().test_client)
|
||||
client.ds = ds
|
||||
yield client
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def app_client_shorter_time_limit():
|
||||
yield from make_app_client(20)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue