From 028b37320629796b4e831e14315b303a60ceac05 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 00:46:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_spawner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_spawner.py b/tests/test_spawner.py index 4271f1ed..486c85a9 100644 --- a/tests/test_spawner.py +++ b/tests/test_spawner.py @@ -1812,7 +1812,7 @@ async def test_spawn_pending_pods(kube_ns, kube_client): c.KubeSpawner.start_timeout = 5 # Do not wait very long. spawner = KubeSpawner(hub=Hub(), user=MockUser(), config=c) with pytest.raises(TimeoutError) as te: - await spawner.start() + await spawner.start() assert 'pod/jupyter-fake did not start' in str(te.value) pods = kube_client.list_namespaced_pod(kube_ns).items @@ -1838,7 +1838,7 @@ async def test_spawn_watcher_reflector_started_twice(config): with pytest.raises(ValueError) as ve: spawner.pod_reflector.start() - assert ('Thread watching for resources is already running' in str(ve.value)) + assert 'Thread watching for resources is already running' in str(ve.value) await spawner.stop() @@ -1873,4 +1873,4 @@ async def test_stop_pod_reflector(kube_ns, kube_client): await spawner.stop() # Pod reflector is running again. - assert not spawner.pod_reflector._stop_event.is_set() \ No newline at end of file + assert not spawner.pod_reflector._stop_event.is_set()