Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for Normal (0.21 sec)

  1. tests/test_dependency_normal_exceptions.py

    Sebastián Ramírez <******@****.***> 1708815997 +0100
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py

                                        }
                                    ),
                                    "examples": {
                                        "normal": {
                                            "summary": "A normal example",
                                            "description": "A **normal** item works correctly.",
                                            "value": {
                                                "name": "Foo",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_testing_dependencies/test_tutorial001_py310.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": "foo", "skip": 5, "limit": 10},
        }
    
    
    @needs_py310
    def test_normal_app():
        from docs_src.dependency_testing.tutorial001_py310 import app, client
    
        app.dependency_overrides = None
        response = client.get("/items/?q=foo&skip=100&limit=200")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    of them that contain failures into one file. The TensorFlow DevInfra team
    uses this to generate a simple overview of an entire pip and nonpip test
    invocation, since the normal logs that Bazel creates are too large for the
    internal invocation viewer.
    """
    import collections
    import os
    import re
    import subprocess
    import sys
    from junitparser import JUnitXml
    
    result = JUnitXml()
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py39.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": "foo", "skip": 5, "limit": 10},
        }
    
    
    @needs_py39
    def test_normal_app():
        from docs_src.dependency_testing.tutorial001_an_py39 import app, client
    
        app.dependency_overrides = None
        response = client.get("/items/?q=foo&skip=100&limit=200")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. tests/test_ws_router.py

        """
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect) as e:
            with client.websocket_connect("/no-router/"):
                pass  # pragma: no cover
        assert e.value.code == status.WS_1000_NORMAL_CLOSURE
    
    
    def websocket_middleware(middleware_func):
        """
        Helper to create a Starlette pure websocket middleware
        """
    
        def middleware_constructor(app):
            @functools.wraps(app)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. docs_src/schema_extra_example/tutorial005_an.py

    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Annotated[
            Item,
            Body(
                openapi_examples={
                    "normal": {
                        "summary": "A normal example",
                        "description": "A **normal** item works correctly.",
                        "value": {
                            "name": "Foo",
                            "description": "A very nice Item",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. docs_src/schema_extra_example/tutorial005_an_py310.py

    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Annotated[
            Item,
            Body(
                openapi_examples={
                    "normal": {
                        "summary": "A normal example",
                        "description": "A **normal** item works correctly.",
                        "value": {
                            "name": "Foo",
                            "description": "A very nice Item",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py310.py

                                        }
                                    ),
                                    "examples": {
                                        "normal": {
                                            "summary": "A normal example",
                                            "description": "A **normal** item works correctly.",
                                            "value": {
                                                "name": "Foo",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  10. tests/test_dependency_security_overrides.py

        data: List[int] = Depends(get_data),
    ):
        return {"user": user_data[0], "scopes": user_data[1], "data": data}
    
    
    client = TestClient(app)
    
    
    def test_normal():
        response = client.get("/user")
        assert response.json() == {
            "user": "john",
            "scopes": ["foo", "bar"],
            "data": [1, 2, 3],
        }
    
    
    def test_override_data():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 14 15:54:46 GMT 2020
    - 1.4K bytes
    - Viewed (0)
Back to top