Skip to content

Async: Implement HTTP transport for crate.client.aio - #843

Open
bgunebakan wants to merge 11 commits into
mainfrom
bilal/async-http-transport-for-crateclientaio
Open

bgunebakan wants to merge 11 commits into
mainfrom
bilal/async-http-transport-for-crateclientaio

Conversation

@bgunebakan

Copy link
Copy Markdown
Contributor

Summary of the changes / Why this is an improvement

Checklist

  • Link to issue this PR refers to (if applicable): Fixes #crate/ecosystem/issues/57

@bgunebakan bgunebakan self-assigned this Oct 22, 2026
Comment thread tests/client/conftest.py
import importlib.util

if importlib.util.find_spec("aiohttp") is not None:
from .aio_support import fake_crate # noqa: F401
Comment thread tests/client/test_aio_http.py Fixed
Comment thread tests/client/test_aio_http.py Fixed
session = client.server_pool[crate.url]._session
assert session is not None and session.closed
with pytest.raises(exceptions.Error):
await request
await asyncio.sleep(delay)
task.cancel()
with pytest.raises(asyncio.CancelledError):
await task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants