From 55a55d489155b102b3e2d2eafa980eb7cf77ae09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Eide?= Date: Wed, 13 Nov 2024 10:16:05 +0100 Subject: [PATCH] fixup! Use scheduler to start Everserver --- tests/everest/test_detached.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/everest/test_detached.py b/tests/everest/test_detached.py index 2fa1d659387..d15da2896f9 100644 --- a/tests/everest/test_detached.py +++ b/tests/everest/test_detached.py @@ -58,13 +58,13 @@ async def test_https_requests(copy_math_func_test_data_to_tmp): assert ServerStatus.running == server_status["status"] url, cert, auth = ServerConfig.get_server_context(everest_config.output_dir) - result = requests.get(url, verify=cert, auth=auth, proxies=PROXY) + result = requests.get(url, verify=cert, auth=auth, proxies=PROXY) # noqa: ASYNC210 assert result.status_code == 200 # Request has succeeded # Test http request fail url = url.replace("https", "http") with pytest.raises(Exception): # noqa B017 - response = requests.get(url, verify=cert, auth=auth, proxies=PROXY) + response = requests.get(url, verify=cert, auth=auth, proxies=PROXY) # noqa: ASYNC210 response.raise_for_status() # Test request with wrong password fails @@ -72,7 +72,7 @@ async def test_https_requests(copy_math_func_test_data_to_tmp): usr = "admin" password = "wrong_password" with pytest.raises(Exception): # noqa B017 - result = requests.get(url, verify=cert, auth=(usr, password), proxies=PROXY) + result = requests.get(url, verify=cert, auth=(usr, password), proxies=PROXY) # noqa: ASYNC210 result.raise_for_status() # Test stopping server