mirror of
https://github.com/borgbase/vorta
synced 2025-01-31 11:51:34 +00:00
13 lines
269 B
Python
13 lines
269 B
Python
|
|
import pytest
|
|
import peewee
|
|
|
|
import vorta
|
|
from vorta.application import VortaApp
|
|
|
|
@pytest.fixture()
|
|
def app(tmpdir):
|
|
tmp_db = tmpdir.join('settings.sqlite')
|
|
mock_db = peewee.SqliteDatabase(str(tmp_db))
|
|
vorta.models.init_db(mock_db)
|
|
return VortaApp([])
|