(
user_id: str, name: str = Body(), db: dict = Depends(get_database)
)
| 27 | |
| 28 | @app.put("/invalid-user/{user_id}") |
| 29 | def put_invalid_user( |
| 30 | user_id: str, name: str = Body(), db: dict = Depends(get_database) |
| 31 | ): |
| 32 | db[user_id] = name |
| 33 | raise HTTPException(status_code=400, detail="Invalid user") |
| 34 | |
| 35 | |
| 36 | @app.put("/user/{user_id}") |
nothing calls this directly
no test coverage detected
searching dependent graphs…