Coverage for tests/test_modules_same_name_body/app/b.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-05-05 00:03 +0000

1from fastapi import APIRouter, Body 1abcdef

2 

3router = APIRouter() 1abcdef

4 

5 

6@router.post("/compute/") 1abcdef

7def compute(a: int = Body(), b: str = Body()): 1abcdef

8 return {"a": a, "b": b} 1ghijkl