remove unused sp

we need to ensure the spawners exist,
but we do that when we set last_activity
This commit is contained in:
Min RK
2019-02-14 16:01:51 +01:00
parent 33a139861b
commit 370ec4f5c7
2 changed files with 2 additions and 1 deletions

View File

@@ -391,6 +391,8 @@ class SingleUserNotebookApp(NotebookApp):
path = list(_exclude_home(path)) path = list(_exclude_home(path))
return path return path
# create dynamic default http client,
# configured with any relevant ssl config
hub_http_client = Any() hub_http_client = Any()
@default('hub_http_client') @default('hub_http_client')
def _default_client(self): def _default_client(self):

View File

@@ -1591,7 +1591,6 @@ async def test_update_activity_admin(app, user, admin_user):
) )
async def test_update_server_activity(app, user, server_name, fresh): async def test_update_server_activity(app, user, server_name, fresh):
token = user.new_api_token() token = user.new_api_token()
sp = user.spawners["exists"]
now = utcnow() now = utcnow()
internal_now = now.replace(tzinfo=None) internal_now = now.replace(tzinfo=None)
# we use naive utc internally # we use naive utc internally