19 lines
334 B
Python
19 lines
334 B
Python
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from app.storage.database import connect
|
|
from app.storage.route_store import Store
|
|
|
|
FIXTURES = Path(__file__).parent / "fixtures"
|
|
|
|
|
|
@pytest.fixture
|
|
def fixtures() -> Path:
|
|
return FIXTURES
|
|
|
|
|
|
@pytest.fixture
|
|
def store(tmp_path) -> Store:
|
|
return Store(connect(str(tmp_path / "test.db")))
|