Files
wehub-resource-sync 8f1970542a
CI / Ruff (push) Has been cancelled
CI / MyPy (push) Has been cancelled
CI / Test Python 3.10 (push) Has been cancelled
CI / Test Python 3.11 (push) Has been cancelled
CI / Test Python 3.12 (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:49:13 +08:00

13 lines
418 B
Python

from typing import Any
from fastapi import FastAPI
def make_fastapi_app_base(parametrized_config: dict[str, Any] | None = None) -> FastAPI:
fastapi_config: dict[str, Any] = {
"title": "Test API",
"description": "A test API app for unit testing",
"version": "0.1.0",
}
app = FastAPI(**fastapi_config | parametrized_config if parametrized_config is not None else {})
return app