Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 148 for parameterize (0.76 sec)

  1. tests/test_request_params/test_file/test_required.py

    
    @app.post("/required-uploadfile", operation_id="required_uploadfile")
    async def read_required_uploadfile(p: Annotated[UploadFile, File()]):
        return {"file_size": p.size}
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/required-bytes",
            "/required-uploadfile",
        ],
    )
    def test_required_schema(path: str):
        openapi = app.openapi()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. tests/test_request_params/test_form/test_list.py

    
    @app.post("/model-required-list-str", operation_id="model_required_list_str")
    def read_model_required_list_str(p: Annotated[FormModelRequiredListStr, Form()]):
        return {"p": p.p}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str_schema(path: str):
        openapi = app.openapi()
        body_model_name = get_body_model_name(openapi, path)
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. tests/test_request_params/test_body/test_optional_str.py

                },
            ],
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    def test_optional_str_missing_empty_dict(path: str):
        client = TestClient(app)
        response = client.post(path, json={})
        assert response.status_code == 200, response.text
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/MethodDesc.java

         *
         * @param index
         *            the index of the parameter
         * @return {@literal true} if the parameter type at the specified index is parameterized
         */
        boolean isParameterized(int index);
    
        /**
         * Returns {@literal true} if the return type is parameterized.
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/ParameterizedClassDesc.java

    import java.lang.reflect.ParameterizedType;
    
    /**
     * Interface for handling parameterized classes.
     *
     * @author koichik
     */
    public interface ParameterizedClassDesc {
    
        /**
         * Returns <code>true</code> if the class represented by this instance is parameterized.
         *
         * @return <code>true</code> if the class represented by this instance is parameterized
         */
        boolean isParameterizedClass();
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/PropertyDesc.java

        /**
         * Returns {@literal true} if this property is parameterized.
         *
         * @return {@literal true} if this property is parameterized
         */
        boolean isParameterized();
    
        /**
         * Returns the information if this property is parameterized.
         *
         * @return the information if this property is parameterized, otherwise {@literal null}
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

    import java.util.Collection;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    
    /** Tests for an undirected {@link StandardMutableGraph}. */
    @AndroidIncompatible
    @RunWith(Parameterized.class)
    @NullUnmarked
    public class StandardMutableUndirectedGraphTest extends AbstractStandardUndirectedGraphTest {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. tests/test_request_params/test_cookie/test_optional_str.py

                "in": "cookie",
            }
        ]
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    def test_optional_str_missing(path: str):
        client = TestClient(app)
        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. tests/test_allow_inf_nan_in_enforcing.py

    
    @pytest.mark.parametrize(
        "value,code",
        [
            ("-1", 200),
            ("inf", 200),
            ("-inf", 200),
            ("nan", 200),
            ("0", 200),
            ("342", 200),
        ],
    )
    def test_allow_inf_nan_param_default(value: str, code: int):
        response = client.post(f"/?z={value}")
        assert response.status_code == code, response.text
    
    
    @pytest.mark.parametrize(
        "value,code",
        [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  10. tests/test_request_params/test_form/test_optional_list.py

            "type": "object",
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-list-str", "/model-optional-list-str"],
    )
    def test_optional_list_str_missing(path: str):
        client = TestClient(app)
        response = client.post(path)
        assert response.status_code == 200, response.text
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top