- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_signatures_consistency (0.12 sec)
-
tests/test_operations_signatures.py
import inspect from fastapi import APIRouter, FastAPI method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"] def test_signatures_consistency(): base_sig = inspect.signature(APIRouter.get) for method_name in method_names: router_method = getattr(APIRouter, method_name) app_method = getattr(FastAPI, method_name) router_sig = inspect.signature(router_method)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 27 12:08:13 UTC 2019 - 934 bytes - Viewed (0)