Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 148 for parameterize (0.21 sec)

  1. docs/es/docs/advanced/advanced-dependencies.md

    ## Parametrizar la instance { #parameterize-the-instance }
    
    Y ahora, podemos usar `__init__` para declarar los parĂ¡metros de la instance que podemos usar para "parametrizar" la dependencia:
    
    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          }
        },
    
        /**
         * Disables cycle detection. This option causes the factory to return unmodified lock
         * implementations provided by the JDK, and is provided to allow applications to easily
         * parameterize when cycle detection is enabled.
         *
         * <p>Note that locks created by a factory with this policy will not participate the
         * cycle detection performed by locks created by other factories.
         */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 17:06:34 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          }
        },
    
        /**
         * Disables cycle detection. This option causes the factory to return unmodified lock
         * implementations provided by the JDK, and is provided to allow applications to easily
         * parameterize when cycle detection is enabled.
         *
         * <p>Note that locks created by a factory with this policy will not participate the
         * cycle detection performed by locks created by other factories.
         */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 17:06:34 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * </p>
         * <p>
         * If <code>type</code> is a parameterized type but has no direct type arguments, an empty array is returned.
         * This includes cases where the parameterized type contains nested types without type arguments.
         * </p>
         * <p>
         * If <code>type</code> is not a parameterized type, <code>null</code> is returned.
         * </p>
         *
         * @param type
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  5. tests/test_request_params/test_body/test_required_str.py

                "p": {"title": "P", "type": "string"},
            },
            "required": ["p"],
            "title": body_model_name,
            "type": "object",
        }
    
    
    @pytest.mark.parametrize("json", [None, {}])
    @pytest.mark.parametrize(
        "path",
        ["/required-str", "/model-required-str"],
    )
    def test_required_str_missing(path: str, json: Union[dict[str, Any], None]):
        client = TestClient(app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. tests/test_request_params/test_header/test_optional_str.py

                "in": "header",
            }
        ]
    
    
    @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.2K bytes
    - Viewed (0)
  7. tests/test_request_params/test_header/test_required_str.py

    class HeaderModelRequiredStr(BaseModel):
        p: str
    
    
    @app.get("/model-required-str")
    async def read_model_required_str(p: Annotated[HeaderModelRequiredStr, Header()]):
        return {"p": p.p}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-str", "/model-required-str"],
    )
    def test_required_str_schema(path: str):
        assert app.openapi()["paths"][path]["get"]["parameters"] == [
            {
                "required": True,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. tests/test_request_params/test_file/test_optional_list.py

        }
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/optional-list-bytes",
            "/optional-list-uploadfile",
        ],
    )
    def test_optional_list_missing(path: str):
        client = TestClient(app)
        response = client.post(path)
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": None}
    
    
    @pytest.mark.parametrize(
        "path",
        [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. tests/test_request_params/test_body/test_optional_list.py

            ],
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-list-str", "/model-optional-list-str"],
    )
    def test_optional_list_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",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. tests/test_request_params/test_body/test_list.py

                    "type": "array",
                },
            },
            "required": ["p"],
            "title": body_model_name,
            "type": "object",
        }
    
    
    @pytest.mark.parametrize("json", [None, {}])
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str_missing(path: str, json: Union[dict, None]):
        client = TestClient(app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top