Skip to content
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

Remove fakeserver #682

Merged
merged 2 commits into from
Aug 16, 2019
Merged

Remove fakeserver #682

merged 2 commits into from
Aug 16, 2019

Conversation

tpazderka
Copy link
Collaborator

  • Any changes relevant to users are recorded in the CHANGELOG.md.
  • The documentation has been updated, if necessary.
  • New code is annotated.
  • Changes are covered by tests.

Replace it by testing with responses.

It tends to break on changes to provider and is just basically a separate implementation.

@@ -839,6 +839,7 @@ def do_access_token_request(
http_args = ht_args
else:
http_args.update(ht_args)
http_args.pop("password", None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why pop password here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason it was passing through and ended up as an invalid kwarg to requests library...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. It is wrong in any case, so the fix should do no harm, but probably the issue is burried somewhere in request_info().

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my guess as well. But didn't want to spend a huge amount of time on that. Will make a separate issue for that...

Copy link
Collaborator

@schlenk schlenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

The password hack is a little weird and should not happen, but thats unrelated to this change.

@@ -839,6 +839,7 @@ def do_access_token_request(
http_args = ht_args
else:
http_args.update(ht_args)
http_args.pop("password", None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. It is wrong in any case, so the fix should do no harm, but probably the issue is burried somewhere in request_info().

@tpazderka tpazderka merged commit 213f20e into master Aug 16, 2019
@tpazderka tpazderka deleted the remove_fakeserver branch August 16, 2019 18:30
@tpazderka tpazderka restored the remove_fakeserver branch October 25, 2019 19:51
@tpazderka tpazderka deleted the remove_fakeserver branch October 25, 2019 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants