Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 245 for tutorial001_an_py39 (0.1 sec)

  1. tests/test_tutorial/test_cookie_params/test_tutorial001_an_py310.py

        from docs_src.cookie_params.tutorial001_an_py310 import app
    
        client = TestClient(app, cookies=cookies)
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    @needs_py310
    def test_openapi_schema():
        from docs_src.cookie_params.tutorial001_an_py310 import app
    
        client = TestClient(app)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ## *경로 작동 데코레이터*에 `dependencies` 추가하기
    
    *경로 작동 데코레이터*는 `dependencies`라는 선택적인 인자를 받습니다.
    
    `Depends()`로 된 `list`이어야합니다:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="19"
    {!> ../../docs_src/dependencies/tutorial006_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="18"
    {!> ../../docs_src/dependencies/tutorial006_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.8 Annotated가 없는 경우
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/security/oauth2-scopes.md

    {!> ../../docs_src/security/tutorial005_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="2  4  8  12  46  64  105  107-115  121-124  128-134  139  155"
    {!> ../../docs_src/security/tutorial005_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="2  4  8  12  47  65  106  108-116  122-125  129-135  140  156"
    {!> ../../docs_src/security/tutorial005_an.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_header_params/test_tutorial002_an_py39.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.header_params.tutorial002_an_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/security/oauth2-jwt.md

    {!> ../../docs_src/security/tutorial004_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="7  48  55-56  59-60  69-75"
    {!> ../../docs_src/security/tutorial004_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="7  49  56-57  60-61  70-76"
    {!> ../../docs_src/security/tutorial004_an.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_background_tasks/test_tutorial002_an_py39.py

    import os
    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @needs_py39
    def test():
        from docs_src.background_tasks.tutorial002_an_py39 import app
    
        client = TestClient(app)
        log = Path("log.txt")
        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***?q=some-query")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 628 bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/security/oauth2-jwt.md

    {!> ../../docs_src/security/tutorial004_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="8  49  56-57  60-61  70-76"
    {!> ../../docs_src/security/tutorial004_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="8  50  57-58  61-62  71-77"
    {!> ../../docs_src/security/tutorial004_an.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:45:10 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_additional_status_codes/test_tutorial001_an_py310.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.additional_status_codes.tutorial001_an_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_update(client: TestClient):
        response = client.put("/items/foo", json={"name": "Wrestlers"})
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 741 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial008b_an_py39.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.dependencies.tutorial008b_an_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_get_no_item(client: TestClient):
        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 918 bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/security/simple-oauth2.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="4  78"
    {!> ../../docs_src/security/tutorial003_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="4  78"
    {!> ../../docs_src/security/tutorial003_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="4  79"
    {!> ../../docs_src/security/tutorial003_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.10+ non-Annotated
    
    /// tip | Dica
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:17:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top