Skip to content

Commit

Permalink
Fixing a lint error; Fixing a regression caused by googleapis/google-…
Browse files Browse the repository at this point in the history
  • Loading branch information
hiranya911 committed Feb 19, 2019
1 parent 3621162 commit 35e2701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion snippets/auth/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,9 @@ def sign_in_with_email_link():
# [END sign_in_with_email_link]

def send_custom_email(email, display_name, link):
pass
del email
del display_name
del link

initialize_sdk_with_service_account()
initialize_sdk_with_application_default()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_token_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_sign_with_iam(self):
iam_resp = '{{"signature": "{0}"}}'.format(signature)
_overwrite_iam_request(app, testutils.MockRequest(200, iam_resp))
custom_token = auth.create_custom_token(MOCK_UID, app=app).decode()
assert custom_token.endswith('.' + signature)
assert custom_token.endswith('.' + signature.rstrip('='))
self._verify_signer(custom_token, 'test-service-account')
finally:
firebase_admin.delete_app(app)
Expand Down Expand Up @@ -241,7 +241,7 @@ def test_sign_with_discovered_service_account(self):
request.response = testutils.MockResponse(
200, '{{"signature": "{0}"}}'.format(signature))
custom_token = auth.create_custom_token(MOCK_UID, app=app).decode()
assert custom_token.endswith('.' + signature)
assert custom_token.endswith('.' + signature.rstrip('='))
self._verify_signer(custom_token, 'discovered-service-account')
assert len(request.log) == 2
assert request.log[0][1]['headers'] == {'Metadata-Flavor': 'Google'}
Expand Down

0 comments on commit 35e2701

Please sign in to comment.