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

5 statements  

« prev     ^ index     » next       coverage.py v7.13.3, created at 2026-02-12 18:15 +0000

1from fastapi import APIRouter, Body 1abcd

2 

3router = APIRouter() 1abcd

4 

5 

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

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

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