From 0f7c3d8c1e68e2d6daa5456187e58b1c2be2fb9d Mon Sep 17 00:00:00 2001 From: Shahaf Bahar Date: Sun, 2 Feb 2025 08:42:43 +0200 Subject: [PATCH] Fix test regex for proxy error message The test was failing due to an incorrect regex pattern in the expected error message. The regex has been updated to match the correct proxy-related error message format. This ensures the test properly validates conflicting proxy settings and prevents false failures. Signed-off-by: Shahaf Bahar --- tests/test_resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_resources.py b/tests/test_resources.py index f525df612a..110cfeb874 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -128,6 +128,6 @@ def test_proxy_conflict_raises_value_error(self, monkeypatch): with pytest.raises( ValueError, match="Conflicting proxy settings: client_configuration.proxy=http://not-env-proxy.com, " - "but the environment variable 'OPENSHIFT_PYTHON_WRAPPER_CLIENT_USE_PROXY' defines proxy as http://env-proxy.com.", + "but the environment variable 'HTTPS_PROXY/HTTP_PROXY' defines proxy as http://env-proxy.com.", ): get_client(client_configuration=client_configuration)