Replace DB layer Peewee by PyDal

This commit is contained in:
Yax 2022-12-01 20:35:48 +01:00
parent bafc0af92c
commit 1522f2826d
15 changed files with 8962 additions and 170 deletions

View file

@ -23,7 +23,7 @@ def init_test_db():
@pytest.fixture
def client():
logger = logging.getLogger(__name__)
database.setup(":memory:")
database.configure("sqlite:memory://db.sqlite")
init_test_db()
logger.info(f"start interface {api}")
return app.test_client()