File size: 347 Bytes
2818f92 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import pytest
from app.core.config import Settings
from app.services.cache import RoadmapCache
@pytest.mark.asyncio
async def test_cache_creates_parent_directory(tmp_path):
db_path = tmp_path / "data" / "lockedin_cache.db"
cache = RoadmapCache(Settings(sqlite_db_path=str(db_path)))
await cache.init()
assert db_path.exists()
|