Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 1,035 for fo2o (0.09 sec)

  1. tests/test_tutorial/test_header_params/test_tutorial003_py310.py

        [
            ("/items", None, 200, {"X-Token values": None}),
            ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
            # TODO: fix this, is it a bug?
            # ("/items", [("x-token", "foo"), ("x-token", "bar")], 200, {"X-Token values": ["foo", "bar"]}),
        ],
    )
    def test(path, headers, expected_status, expected_response, client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_form_models/test_tutorial001_an.py

    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    def test_post_body_form_no_password(client: TestClient):
        response = client.post("/login/", data={"username": "Foo"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_form_models/test_tutorial001_an_py39.py

        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    @needs_py39
    def test_post_body_form_no_password(client: TestClient):
        response = client.post("/login/", data={"username": "Foo"})
        assert response.status_code == 422
        assert response.json() == IsDict(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/pseudo_test.go

    		{"TEXT", "$\"foo\", 0, $1", "TEXT symbol \"<erroneous symbol>\" must be a symbol(SB)"},
    		{"TEXT", "$0É:0, 0, $1", "expected end of operand, found É"}, // Issue #12467.
    		{"TEXT", "$:0:(SB, 0, $1", "expected '(', found 0"},          // Issue 12468.
    		{"TEXT", "@B(SB),0,$0", "expected '(', found B"},             // Issue 23580.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_form_models/test_tutorial001.py

    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    def test_post_body_form_no_password(client: TestClient):
        response = client.post("/login/", data={"username": "Foo"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_websockets/test_tutorial002_an_py310.py

            with client.websocket_connect("/items/foo/ws") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
                assert data == f"Message text was: {message}, for item ID: foo"
                message = "Message two"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_model/test_tutorial003.py

            "/user/",
            json={
                "username": "foo",
                "password": "fighter",
                "email": "foo@example.com",
                "full_name": "Grave Dohl",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "foo",
            "email": "foo@example.com",
            "full_name": "Grave Dohl",
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      fun writerEviction() {
        val headerBlock =
          headerEntries(
            "custom-foo",
            "custom-header",
            "custom-bar",
            "custom-header",
            "custom-baz",
            "custom-header",
          )
        bytesIn.writeByte(0x40) // Literal indexed
        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-foo")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/query-params.md

    ////
    
    本例中,访问:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/filter_test.go

    			want:     false,
    		},
    		{
    			filter:   oneTag,
    			userTags: "FOO=1",
    			want:     true,
    		},
    		{
    			filter:   oneTag,
    			userTags: "A=B&FOO=1",
    			want:     true,
    		},
    		{
    			filter:   twoTags,
    			userTags: "",
    			want:     false,
    		},
    		{
    			filter:   twoTags,
    			userTags: "FOO=1",
    			want:     false,
    		},
    		{
    			filter:   twoTags,
    			userTags: "BAR=2",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top