-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Does not work with anyio 4 #2081
Comments
Indeed, Schemathesis pins There is a plan to switch from |
@Stranger6667 Is supporting |
Hi @wolfskaempf ! thank you for pinging. At this point I refactored the transport logic and now it should be easier to migrate that logic to httpx. There are two main ways to get this through. The first one is to migrate ASGI transport to httpx, including sync-async bridge (the ASGI adapter in httpx is async). The other option is to add support for newer anyio versions to starlette-testclient and update it in Schemathesis. the latter could be simpler, but I’d prefer the former one as it is cleaner and reduce our dependency on legacy tools (in a sense that starlette moved to httpx and starlette-testclient is a backport of its old code). In terms of support I am thinking about a few ways:
Other than that I am currently looking more into reworking all the jsonschema usage by integrating the next version of my ‘jsonschema’ Rust crate which aims to resolve long standing performance and compatibility issues in this area. It will take a few months, so I am not sure if I’d have the bandwidth to dive deeper into transports. |
@Stranger6667 I gave you maintainer rights on starlette-testclient. Feel free to do what you need. 👍 |
Thanks! |
The fix is available in |
Checklist
Describe the bug
Schemathesis does not start when anyio 4 is installed.
It seems there is a dependency on
starlette-testclient
which is the cause of the problem.To Reproduce
Expected behavior
Works
Environment
Additional context
The text was updated successfully, but these errors were encountered: