-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
TestClient accepts backend and backend_options as arguments to constructor #1211
Conversation
480fb3e
to
a07b468
Compare
a07b468
to
070fba9
Compare
070fba9
to
3498c9e
Compare
It seems you've removed the parametrization of |
anyio_backend is set to |
Hm you're right, the default for anyio_backend is to use all backends: /~https://github.com/agronholm/anyio/blob/3.2.0/src/anyio/pytest_plugin.py#L140 By deleting it you're effectively testing on all backends supported by anyio (but also not explicitly passing options). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Only thing is the PR title--does this count as "monkeypatching"?
Co-authored-by: Jamie Hewland <jhewland@gmail.com>
isn't that what this is?
|
🤔 I guess technically it is monkey patching since it's modifying a class attribute at runtime. Always thought of monkey patching as a "bigger hammer" where you modify a method at runtime and potentially do so in a way that wasn't intended by the original author. |
No description provided.