Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for heddle (0.2 sec)

  1. tests/test_tutorial/test_websockets/test_tutorial003.py

    from docs_src.websockets.tutorial003 import app, html
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/")
        assert response.text == html
    
    
    def test_websocket_handle_disconnection():
        with client.websocket_connect("/ws/1234") as connection, client.websocket_connect(
            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 29 09:26:07 GMT 2021
    - 872 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

        return client
    
    
    @needs_py39
    def test_get(client: TestClient, html: str):
        response = client.get("/")
        assert response.text == html
    
    
    @needs_py39
    def test_websocket_handle_disconnection(client: TestClient):
        with client.websocket_connect("/ws/1234") as connection, client.websocket_connect(
            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  3. fastapi/applications.py

        def exception_handler(
            self,
            exc_class_or_status_code: Annotated[
                Union[int, Type[Exception]],
                Doc(
                    """
                    The Exception class this would handle, or a status code.
                    """
                ),
            ],
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            """
            Add an exception handler to the app.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py

        assert (
            '"syntaxHighlight": false' not in response.text
        ), "not used parameters should not be included"
        assert (
            '"syntaxHighlight.theme": "obsidian"' in response.text
        ), "parameters with middle dots should be included in a JSON compatible way"
        assert (
            '"dom_id": "#swagger-ui"' in response.text
        ), "default configs should be preserved"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. fastapi/_compat.py

            or hasattr(origin, "__pydantic_core_schema__")
            or hasattr(origin, "__get_pydantic_core_schema__")
        )
    
    
    def field_annotation_is_scalar(annotation: Any) -> bool:
        # handle Ellipsis here to make tuple[int, ...] work nicely
        return annotation is Ellipsis or not field_annotation_is_complex(annotation)
    
    
    def field_annotation_is_scalar_sequence(annotation: Union[Type[Any], None]) -> bool:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. fastapi/routing.py

                    """
                    Default function handler for this router. Used to handle
                    404 Not Found errors.
                    """
                ),
            ] = None,
            dependency_overrides_provider: Annotated[
                Optional[Any],
                Doc(
                    """
                    Only used internally by FastAPI to handle dependency overrides.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top