From 758dfd1b56dc1f4dba8aa5344573c75ae6c8e122 Mon Sep 17 00:00:00 2001 From: Sheila Kahwai Date: Mon, 20 Feb 2023 12:09:28 +0300 Subject: [PATCH] remove async keyword --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 1ca6c17a..f50dd683 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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}, @@ -100,7 +100,7 @@ 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}): @@ -108,7 +108,7 @@ async def dockerspawner_configured_app(app, named_servers): @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} @@ -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