Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for parametrizar (0.53 sec)

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

    ## Parametrizar a instância
    
    E agora, nós podemos utilizar o `__init__` para declarar os parâmetros da instância que podemos utilizar para "parametrizar" a dependência:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="9"
    {!> ../../docs_src/dependencies/tutorial011_an_py39.py!}
    ```
    
    ////
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. 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 Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Aug 24 19:27:37 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. docs/az/docs/index.md

    * Hər iki _yolda_ `GET` əməliyyatlarını (həmçinin HTTP _metodları_ kimi bilinir) aparır.
    * `/items/{item_id}` _yolu_ `item_id` adlı `int` qiyməti almalı olan _yol parametrinə_ sahibdir.
    * `/items/{item_id}` _yolunun_ `q` adlı yol parametri var və bu parametr istəyə bağlı olsa da, `str` qiymətini almalıdır.
    
    ### İnteraktiv API Sənədləri
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. tests/test_computed_fields.py

        @app.get("/responses", responses={200: {"model": Rectangle}})
        def read_responses() -> Rectangle:
            return Rectangle(width=3, length=4)
    
        client = TestClient(app)
        return client
    
    
    @pytest.mark.parametrize("path", ["/", "/responses"])
    @needs_pydanticv2
    def test_get(client: TestClient, path: str):
        response = client.get(path)
        assert response.status_code == 200, response.text
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top