Why disable the scope entirely in the test client rather than making an option to disable it? #2429
Unanswered
pythonweb2
asked this question in
Potential Issue
Replies: 3 comments 11 replies
-
I created a PR to revert the change, and add an option for users. Could also not revert the change, but also add the option. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We are on ZeroVer. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@aminalaee what do u think? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related: #2408
I understand that the intended behavior was to disable this, but pushing a breaking change in a minor version doesn't seem like a good idea. We have a whole bunch of code that depended on the
client.host
to be populated, and now I have to refactor it all if I update to 0.35.0.My proposal is to revert the change and make an option to set the
client
to None when you instantiate theTestClient
. Something like this:If you use a fixture, that is a one line change. If not, you could make subclass it and override the client property.
@Kludex
Beta Was this translation helpful? Give feedback.
All reactions