Skip to content

Commit b4c8748

Browse files
authored
Fix test regex for proxy error message (#2307)
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 <[email protected]>
1 parent 9966a42 commit b4c8748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ def test_proxy_conflict_raises_value_error(self, monkeypatch):
128128
with pytest.raises(
129129
ValueError,
130130
match="Conflicting proxy settings: client_configuration.proxy=http://not-env-proxy.com, "
131-
"but the environment variable 'OPENSHIFT_PYTHON_WRAPPER_CLIENT_USE_PROXY' defines proxy as http://env-proxy.com.",
131+
"but the environment variable 'HTTPS_PROXY/HTTP_PROXY' defines proxy as http://env-proxy.com.",
132132
):
133133
get_client(client_configuration=client_configuration)

0 commit comments

Comments
 (0)