formatting and fixture move

This commit is contained in:
holger krekel
2023-10-21 01:32:36 +02:00
parent fdd528841f
commit 9d175316ff
2 changed files with 12 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
import pytest
from chatmaild.database import Database
@pytest.fixture()
def db(tmpdir):
db_path = tmpdir / "passdb.sqlite"
print("database path:", db_path)
return Database(db_path)