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" app = create_app(database_url=f"sqlite:///{db_path}") with TestClient(app) as test_client: yield test_client