Skip to content

Commit

Permalink
make get_auth_state async
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Jan 7, 2024
1 parent b1c502a commit d74dbb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jhub_apps/service/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ def get_conda_envs(config):

def get_fake_spawner_object(auth_state):
fake_spawner = Mock()
fake_spawner.user.get_auth_state.return_value = auth_state

async def get_auth_state():
return auth_state

fake_spawner.user.get_auth_state = get_auth_state
fake_spawner.log = logger
return fake_spawner

Expand Down

0 comments on commit d74dbb5

Please sign in to comment.