-
-
Notifications
You must be signed in to change notification settings - Fork 427
Avoid requests automatic auth #279
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
Conversation
|
So, this definitely looks plausible. I think we need some testing: in particular, I think we need some testing about how this interacts with the other places we process auth (see anywhere that has |
|
I'll try to put in some more time this evening to figuring out the testing. |
|
Hey @ryanhiebert, what's the status of this pull request? |
|
Thank you for the nudge. This latest commit fixed the bugs, but I still haven't added any regression testing. |
|
I am working on the regression test, but looking at @Lukasa 's comment to me about checking on auth that we do, I'm not sure how to do any of that. My impression is that there's nothing really to test with that, because all of the current tests should handle those cases. The only thing I'm seeing being worth adding AFA tests is the regression test to make sure that the |
|
Digging into the session code of requests a bit more, it looks like there's a http://docs.python-requests.org/en/master/api/#requests.Session.trust_env Would settings |
|
OK, I've added a regression test suite, that inherits from the main test suite but sets up a problematic I've kept the no-op auth as the approach, because I'm a bit hesitant to incur the side-effect of bypassing proxies, and because the no-op lambda is already short enough to make me happy. |
|
Looks great to me! @Lukasa, what do you think? |
|
What are we thinking about this? |
|
@ryanhiebert if you rebase to resolve the conflicts, and the tests still pass, then I'll merge this. |
|
Thanks, @singingwolfboy . I've done that. |
Fixes #278
I haven't added any tests, but I can later.