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). |
JayH5
left a comment
There was a problem hiding this comment.
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.