LockedIn / tests /test_cache.py
JermaineAI's picture
deployed progress
2818f92
raw
history blame contribute delete
347 Bytes
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()