Skip to content

Commit

Permalink
remove async keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheila-nk committed Apr 5, 2023
1 parent 42ec5dc commit 758dfd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def app(hub_app):


@pytest.fixture
async def named_servers(app):
def named_servers(app):
with mock.patch.dict(
app.tornado_settings,
{"allow_named_servers": True, "named_server_limit_per_user": 2},
Expand All @@ -100,15 +100,15 @@ async def named_servers(app):


@pytest.fixture
async def dockerspawner_configured_app(app, named_servers):
def dockerspawner_configured_app(app, named_servers):
"""Configure JupyterHub to use DockerSpawner"""
# app.config.DockerSpawner.remove = True
with mock.patch.dict(app.tornado_settings, {"spawner_class": DockerSpawner}):
yield app


@pytest.fixture
async def swarmspawner_configured_app(app, named_servers):
def swarmspawner_configured_app(app, named_servers):
"""Configure JupyterHub to use DockerSpawner"""
with mock.patch.dict(
app.tornado_settings, {"spawner_class": SwarmSpawner}
Expand All @@ -117,7 +117,7 @@ async def swarmspawner_configured_app(app, named_servers):


@pytest.fixture
async def systemuserspawner_configured_app(app, named_servers):
def systemuserspawner_configured_app(app, named_servers):
"""Configure JupyterHub to use DockerSpawner"""
with mock.patch.dict(app.tornado_settings, {"spawner_class": SystemUserSpawner}):
yield app
Expand Down

0 comments on commit 758dfd1

Please sign in to comment.