Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 907 for Upsert (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_tutorial/test_dependencies/test_tutorial012.py

        response = client.get("/items/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_get_invalid_one_users(client: TestClient):
        response = client.get("/users/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  2. tests/test_dependency_duplicates.py

            json={"item": {"data": "myitem"}, "item2": {"data": "myitem2"}},
        )
        assert response.status_code == 200, response.text
        assert response.json() == [{"data": "myitem"}, {"data": "myitem2"}]
    
    
    def test_duplicates():
        response = client.post("/with-duplicates", json={"data": "myitem"})
        assert response.status_code == 200, response.text
        assert response.json() == [{"data": "myitem"}, {"data": "myitem"}]
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 8K bytes
    - Click Count (0)
  3. tests/test_response_by_alias.py

        response = client.get("/dict")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Foo"}
    
    
    def test_read_model():
        response = client.get("/model")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Foo"}
    
    
    def test_read_list():
        response = client.get("/list")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  4. tests/test_compat.py

        response = client.post("/", json={})
        assert response.status_code == 200, response.text
        assert response.json() == {
            "value": None,
            "embedded_value": None,
        }
    
        response2 = client.post(
            "/", json={"value": "foo", "embedded_model": {"value": "bar"}}
        )
        assert response2.status_code == 200, response2.text
        assert response2.json() == {
            "value": "foo",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_security/test_tutorial004.py

        )
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_login_incorrect_username(mod: ModuleType):
        client = TestClient(mod.app)
        response = client.post("/token", data={"username": "foo", "password": "secret"})
        assert response.status_code == 401, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  6. tests/test_query_cookie_header_model_extra_params.py

            },
        )
        assert resp.status_code == 200
        assert resp.json() == {
            "param": "123",
            "param2": ["456", "789"],
        }
    
    
    def test_query_pass_extra_single():
        client = TestClient(app)
        resp = client.get(
            "/query",
            params={
                "param": "123",
                "param2": "456",
            },
        )
        assert resp.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  7. tests/test_response_model_default_factory.py

        assert response.status_code == 200, response.text
    
        assert response.json()["code"] == 200
        assert response.json()["message"] == "Successful operation."
    
    
    def test_response_model_has_default_factory_return_model():
        response = client.get("/response_model_has_default_factory_return_model")
    
        assert response.status_code == 200, response.text
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 18:51:40 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/curl/CurlTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.curl;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNotNull;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import java.io.File;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.InvocationTargetException;
    import java.util.logging.Level;
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  9. tests/test_request_params/test_query/test_optional_str.py

        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    def test_optional_str(path: str):
        client = TestClient(app)
        response = client.get(f"{path}?p=hello")
        assert response.status_code == 200
        assert response.json() == {"p": "hello"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_extending_openapi/test_tutorial001.py

    client = TestClient(app)
    
    
    def test():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"name": "Foo"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {
                "title": "Custom title",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.5K bytes
    - Click Count (0)
Back to Top