Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for put_invalid_user (0.05 sec)

  1. tests/test_dependency_yield_except_httpexception.py

            fake_database.update(temp_database)
        except HTTPException:
            state["except"] = True
            raise
        finally:
            state["finally"] = True
    
    
    @app.put("/invalid-user/{user_id}")
    def put_invalid_user(
        user_id: str, name: str = Body(), db: dict = Depends(get_database)
    ):
        db[user_id] = name
        raise HTTPException(status_code=400, detail="Invalid user")
    
    
    @app.put("/user/{user_id}")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 03:29:38 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top