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

Change auhtorize account signature #327

Closed
wants to merge 5 commits into from

Conversation

mpnowacki-reef
Copy link

No description provided.

Choose a reason for hiding this comment

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

Isn't it a valid case of having a GitHub ticket, just from a different repo, assigned here?

Copy link
Author

Choose a reason for hiding this comment

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

would be, but town crier doesn't support it, so this will just yield a broken link

Choose a reason for hiding this comment

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

Also, this wouldn't be valid with the latest nox -s towncrier_check

@@ -116,7 +116,11 @@ def setUp(self):
(self.application_key_id, self.master_key) = self.raw_api.create_account()

def _authorize_account(self):
self.api.authorize_account('production', self.application_key_id, self.master_key)
self.api.authorize_account(
realm='production',

Choose a reason for hiding this comment

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

Nitpick: all other changes to kwargs resulted in placing realm being placed as last in the invocation.

@@ -39,7 +39,11 @@ def setUp(self):
self.application_key_id, self.master_key = self.raw_api.create_account()

def _authorize_account(self):
self.api.authorize_account('production', self.application_key_id, self.master_key)
self.api.authorize_account(
realm='production',

Choose a reason for hiding this comment

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

Nitpick: all other changes to kwargs resulted in placing realm being placed as last in the invocation.

@@ -209,13 +209,13 @@ def authorize_automatically(self):
return self.session.authorize_automatically()

@limit_trace_arguments(only=('self', 'realm'))
def authorize_account(self, realm, application_key_id, application_key):
def authorize_account(self, application_key_id, application_key, realm='production'):

Choose a reason for hiding this comment

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

I was considering asking for providing remaining realm options as e.g. Literal type or in the docstring. But these additional options are only for B2 developers, right? So it probably wouldn't make sense to add it here :/

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