Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Wroten (0.29 sec)

  1. tests/test_tutorial/test_websockets/test_tutorial003.py

            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    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

            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    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. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007_pv1.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Deadpoolio",
            "tags": ["x-force", "x-men", "x-avengers"],
        }
    
    
    @needs_pydanticv1
    def test_post_broken_yaml(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            x - x-force
            x - x-men
            x - x-avengers
            """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Deadpoolio",
            "tags": ["x-force", "x-men", "x-avengers"],
        }
    
    
    @needs_pydanticv2
    def test_post_broken_yaml(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            x - x-force
            x - x-men
            x - x-avengers
            """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body/test_tutorial001_py310.py

                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_post_broken_body(client: TestClient):
        response = client.post(
            "/items/",
            headers={"content-type": "application/json"},
            content="{some broken json}",
        )
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (1)
  6. tests/test_tutorial/test_body/test_tutorial001.py

                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_post_broken_body(client: TestClient):
        response = client.post(
            "/items/",
            headers={"content-type": "application/json"},
            content="{some broken json}",
        )
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (5)
  7. docs_src/websockets/tutorial003.py

        await manager.connect(websocket)
        try:
            while True:
                data = await websocket.receive_text()
                await manager.send_personal_message(f"You wrote: {data}", websocket)
                await manager.broadcast(f"Client #{client_id} says: {data}")
        except WebSocketDisconnect:
            manager.disconnect(websocket)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Aug 09 13:52:19 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  8. ci/official/utilities/extract_resultstore_links.py

                                 else 0)
        while k > bazel_comm_min_line_i:
          backtrack_line = log_lines[k]
          # Don't attempt to parse multi-line commands broken up by backslashes
          if 'bazel ' in backtrack_line and not backtrack_line.endswith('\\'):
            bazel_line = BAZEL_COMMAND_RE.search(backtrack_line)
            if bazel_line:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/api_template_v1.__init__.py

      Please upgrade your code to TensorFlow 2.0:
        * https://www.tensorflow.org/guide/migrate
    
      Or install the latest stable TensorFlow 1.X release:
        * `pip install -U "tensorflow==1.*"`
    
      Otherwise your code may be broken by the change.
    
      """)
    
    # Make sure directory containing top level submodules is in
    # the __path__ so that "from tensorflow.foo import bar" works.
    # We're using bitwise, but there's nothing special about that.
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. tests/test_generate_unique_id_function.py

                        },
                    },
                }
            },
        }
    
    
    def test_warn_duplicate_operation_id():
        def broken_operation_id(route: APIRoute):
            return "foo"
    
        app = FastAPI(generate_unique_id_function=broken_operation_id)
    
        @app.post("/")
        def post_root(item1: Item):
            return item1  # pragma: nocover
    
        @app.post("/second")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top