Skip to content

Commit

Permalink
Updated Globus tests to use async instead of @gen.coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolausDS committed Oct 30, 2019
1 parent b86484b commit 3e67174
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions oauthenticator/tests/test_globus.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ class User:
name = 'Wash'
state = {'tokens': mock_globus_sdk.by_resource_server}

@gen.coroutine
def get_auth_state(self):
async def get_auth_state(self):
return self.state

@gen.coroutine
def save_auth_state(self, state):
async def save_auth_state(self, state):
self.state = state
return User()

Expand Down

0 comments on commit 3e67174

Please sign in to comment.