from collections.abc import Iterator import pytest from fastapi import FastAPI from starlette.testclient import TestClient from location.api.main import app as _app @pytest.fixture def app() -> FastAPI: return _app @pytest.fixture def test_client(app: FastAPI) -> Iterator[TestClient]: with TestClient(app) as client: yield client