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
GuessAuth #28
GuessAuth #28
Conversation
In what way does it break? |
Wait for it... |
Heh, whoops, I forgot we had Travis. =D Awkward. |
Specifically, the |
Hmm. Does it break if you make a real request? I'm wondering if Betamax isn't doing the right thing with the cookies parameter. |
That is exactly it. Quickly glancing over betamax it doesn't seem it serializes cookies at all? |
That's perfectly possible. Betamax is @sigmavirus24's baby, so I'll let him field this for now, but I'm sure he'd welcome a pull request. =) |
|
We don't recreate the If you'd like to open a bug on betamax about this, we'll have to figure out how to properly recreate the cookie jar from the headers on a |
I seriously don't care at all. Your opinion is more valuable because you know both libraries better than i do. |
I have to imagine that at some point someone else is going to run into this problem as well. It's definitely worth fixing. |
I've started working on a fix here: https://gitlab.com/sigmavirus24/betamax/commits/fix-prepared-cookies (incidentally, also a refactor of sorts) |
Thanks. I am still curious though: You stated that _cookies shouldn't have been added to PreparedRequest. Is this your opinion, and why do you think so? |
So it serves a purpose but I don't like the fact that we settled on that solution. It's messy and violates the whole naming convention surrounding Also, the PreparedRequest shouldn't have information on there that isn't going to actually affect the sending of it through the transport adapter. While I'm complaining: I'm also not content in the slightest with the fact that the Transport Adapter attaches itself to a generated response as |
So while these issues are fixed, we cannot have matching on the |
What about just hitting the network for this test for now? |
@untitaker betamax is fixed now. If you change the dev-requirements to point to the repo (e.g. You just need to tell Betamax to also match on |
Unfortunately it doesn't seem like that... |
Sorry, forgot to mention the crucial step: You'll have to rerecord the cassette in question (i.e., |
I don't think that's the reason, at least not for Python 3. |
Yay it works! |
Thanks for all your help @untitaker ! 🍰 🍰 🍻 |
In other news, you have some syntax that python 2.6/2.7 cannot handle. |
This seems rather related to requests 2.0.1. |
I don't know how to fix the errors related to requests. |
I haven't looked so this is just a shot in the dark, but I suspect this might be related to the fact that |
How about we just skip these tests for Requests 2.0.1? Otherwise betamax would have to maintain Requests 2.0.1 compat, which is hardly worth it for the general usecase of betamax. |
@untitaker this is not the fault of requests. Dropping requests 2.0.1 is worth discussion over at betamax |
Yes i already force-pushed a solution to this. |
Bump. Should i skip these tests for requests 2.0.1? |
Hey @untitaker I lost track of this. I'm going to look at it tonight or tomorrow to determine why those tests are failing. They really shouldn't be failing at all. |
Ok great. |
Ok, I'm actually getting around to this now. Sorry for the delay. I've been super busy. |
Thanks @untitaker ✨ 🍰 ✨ |
\o/ |
FWIW, I bumped the minimum test-supported version of requests to 2.1 |
Is there a ETA for a new version? |
@untitaker I think I want to get #22 in at least. I'm not sure I like #21 anymore but I'm going to leave that open for now. |
@untitaker you never added yourself to AUTHORS, feel free to send a PR or let me know how you want to be credited. |
Submitted at #65 |
See https://github.com/kennethreitz/requests/issues/2006
This currently breaks and i can't explain how it breaks since the same code is
used in requests.