Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 254 for py_test (0.17 sec)

  1. docs/pt/docs/project-generation.md

    * **CORS** (_Cross Origin Resource Sharing_ - Compartilhamento de Recursos Entre Origens).
    * _Worker_ **Celery** que pode importar e usar modelos e códigos do resto do _backend_ seletivamente.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Oct 17 05:50:32 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  2. docs/fr/docs/project-generation.md

    * **CORS** (partage des ressources entre origines multiples, ou *Cross Origin Resource Sharing*).
    * *Worker* **Celery** pouvant importer et utiliser les modèles et le code du reste du backend.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 02 14:18:06 GMT 2021
    - 6.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_bigger_applications/test_main_an.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.bigger_applications.app_an.main import app
    
        client = TestClient(app)
        return client
    
    
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_bigger_applications/test_main_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.bigger_applications.app_an_py39.main import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. tests/test_include_router_defaults_overrides.py

        assert not override3 or "x-level3" in response.headers
    
    
    @pytest.mark.parametrize("override1", [True, False])
    @pytest.mark.parametrize("override2", [True, False])
    @pytest.mark.parametrize("override3", [True, False])
    @pytest.mark.parametrize("override4", [True, False])
    @pytest.mark.parametrize("override5", [True, False])
    def test_paths_level5(override1, override2, override3, override4, override5):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  6. docs/pl/docs/index.md

    * Wiele dodatkowych funkcji (dzięki Starlette) takie jak:
        * **WebSockety**
        * **GraphQL**
        * bardzo proste testy bazujące na HTTPX oraz `pytest`
        * **CORS**
        * **Sesje cookie**
        * ...i więcej.
    
    ## Wydajność
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. docs/ru/docs/index.md

    * Множество дополнительных функций (благодаря Starlette), таких как:
        * **Веб-сокеты**
        * очень простые тесты на основе HTTPX и `pytest`
        * **CORS**
        * **Cookie сеансы(сессии)**
        * ...и многое другое.
    
    ## Производительность
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  8. docs/it/docs/index.md

    * E altre funzionalità (grazie a Starlette) come:
        * **WebSockets**
        * **GraphQL**
        * test molto facili basati su `requests` e `pytest`
        * **CORS**
        * **Cookie Sessions**
        * ...e altro ancora.
    
    ## Prestazioni
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. docs/zh/docs/index.md

    * 安全性和身份验证,包括通过 **JWT 令牌**和 **HTTP 基本身份认证**来支持 **OAuth2**。
    * 更进阶(但同样简单)的技巧来声明 **多层嵌套 JSON 模型** (借助 Pydantic)。
    * 许多额外功能(归功于 Starlette)比如:
        * **WebSockets**
        * **GraphQL**
        * 基于 HTTPX 和 `pytest` 的极其简单的测试
        * **CORS**
        * **Cookie Sessions**
        * ......以及更多
    
    ## 性能
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_websockets/test_tutorial002_an_py39.py

        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws"):
                pytest.fail(
                    "did not raise WebSocketDisconnect on __enter__"
                )  # pragma: no cover
    
    
    @needs_py39
    def test_websocket_invalid_data(app: FastAPI):
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top