Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 362 for asyncpg (0.04 sec)

  1. tests/test_inherited_custom_class.py

        @property  # type: ignore
        def __class__(self):
            return uuid.UUID
    
        @property
        def __dict__(self):
            """Spoof a missing __dict__ by raising TypeError, this is how
            asyncpg.pgroto.pgproto.UUID behaves"""
            raise TypeError("vars() argument must have __dict__ attribute")
    
    
    def test_pydanticv2():
        from pydantic import field_serializer
    
        app = FastAPI()
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. docs/es/docs/async.md

    ### Otras formas de código asíncrono { #other-forms-of-asynchronous-code }
    
    Este estilo de usar `async` y `await` es relativamente nuevo en el lenguaje.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/async-tests.md

    # Testes Assíncronos { #async-tests }
    
    Você já viu como testar as suas aplicações **FastAPI** utilizando o `TestClient` que é fornecido. Até agora, você viu apenas como escrever testes síncronos, sem utilizar funções `async`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/async-tests.md

    # Async Tests { #async-tests }
    
    You have already seen how to test your **FastAPI** applications using the provided `TestClient`. Up to now, you have only seen how to write synchronous tests, without using `async` functions.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/async-tests.md

    # Asynchrone Tests { #async-tests }
    
    Sie haben bereits gesehen, wie Sie Ihre **FastAPI**-Anwendungen mit dem bereitgestellten `TestClient` testen. Bisher haben Sie nur gesehen, wie man synchrone Tests schreibt, ohne `async`-Funktionen zu verwenden.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (1)
  6. docs/es/docs/advanced/async-tests.md

    # Tests Asíncronos { #async-tests }
    
    Ya has visto cómo probar tus aplicaciones de **FastAPI** usando el `TestClient` proporcionado. Hasta ahora, solo has visto cómo escribir tests sincrónicos, sin usar funciones `async`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. docs/ru/docs/advanced/async-tests.md

    # Асинхронное тестирование { #async-tests }
    
    Вы уже видели как тестировать **FastAPI** приложение, используя имеющийся класс `TestClient`. К этому моменту вы видели только как писать тесты в синхронном стиле без использования `async` функций.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial007.py

    import asyncio
    from contextlib import asynccontextmanager
    from unittest.mock import Mock, patch
    
    from docs_src.dependencies.tutorial007_py39 import get_db
    
    
    def test_get_db():  # Just for coverage
        async def test_async_gen():
            cm = asynccontextmanager(get_db)
            async with cm() as db_session:
                return db_session
    
        dbsession_moock = Mock()
    
        with patch(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 642 bytes
    - Viewed (0)
  9. tests/test_dependency_wrapped.py

            "/async-wrapped-dependency-async-wrapper/",
            "/async-wrapped-gen-dependency-async-wrapper/",
            "/wrapped-class-instance-dependency-async-wrapper/",
            "/wrapped-class-instance-async-dependency-async-wrapper/",
            "/wrapped-class-dependency-async-wrapper/",
            "/wrapped-endpoint-async-wrapper/",
            "/async-wrapped-endpoint-async-wrapper/",
        ],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_path_params/test_tutorial003b.py

    import asyncio
    
    from fastapi.testclient import TestClient
    
    from docs_src.path_params.tutorial003b_py39 import app, read_users2
    
    client = TestClient(app)
    
    
    def test_get_users():
        response = client.get("/users")
        assert response.status_code == 200, response.text
        assert response.json() == ["Rick", "Morty"]
    
    
    def test_read_users2():  # Just for coverage
        assert asyncio.run(read_users2()) == ["Bean", "Elfo"]
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top