import pytest from fastapi.testclient import TestClient from spelunkai_labeling_backend.main import create_app @pytest.fixture() def client(tmp_path): db_path = tmp_path / "test.db" frames_root = tmp_path / "frames" app = create_app(database_url=f"sqlite:///{db_path}", frames_root=str(frames_root)) with TestClient(app) as test_client: yield test_client