Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for include_router (0.17 sec)

  1. tests/test_generate_unique_id_function.py

            responses={404: {"model": List[Message]}},
        )
        def post_subrouter(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
        router.include_router(sub_router)
        app.include_router(router, generate_unique_id_function=custom_generate_unique_id3)
        client = TestClient(app)
        response = client.get("/openapi.json")
        data = response.json()
        assert data == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top