Coverage for tests/test_modules_same_name_body/app/a.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
1from fastapi import APIRouter, Body 1abcde
3router = APIRouter() 1abcde
6@router.post("/compute") 1abcde
7def compute(a: int = Body(), b: str = Body()): 1abcde
8 return {"a": a, "b": b} 1abcde