Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #197 from eamonnmcmanus/master
Browse files Browse the repository at this point in the history
Remove unwanted side-effect in test_oauth2client introduced by #196.
  • Loading branch information
nathanielmanistaatgoogle committed Jun 23, 2015
2 parents b22e939 + 77c1064 commit c5eb9f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_oauth2client.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,15 @@ def setUp(self):
user_agent, revoke_uri=GOOGLE_REVOKE_URI)

# Provoke a failure if @util.positional is not respected.
self.old_positional_enforcement = (
oauth2client_util.positional_parameters_enforcement)
oauth2client_util.positional_parameters_enforcement = (
oauth2client_util.POSITIONAL_EXCEPTION)

def tearDown(self):
oauth2client_util.positional_parameters_enforcement = (
self.old_positional_enforcement)

def test_token_refresh_success(self):
for status_code in REFRESH_STATUS_CODES:
token_response = {'access_token': '1/3w', 'expires_in': 3600}
Expand Down

0 comments on commit c5eb9f1

Please sign in to comment.