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()