kronos-dashboard / tests /conftest.py
daeeeee's picture
test: pytest scaffolding (tmp_db fixture)
37eb6f3
Raw
History Blame Contribute Delete
155 Bytes
import sqlite3
from pathlib import Path
import pytest
@pytest.fixture
def tmp_db(tmp_path: Path) -> str:
db = tmp_path / "test.db"
return str(db)