We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SeleniumHQ
Learn more about funding links in repositories.
Report abuse
1 parent 9ae1d7b commit b40dd0eCopy full SHA for b40dd0e
py/test/unit/selenium/webdriver/remote/remote_connection_tests.py
@@ -69,8 +69,13 @@ def test_get_remote_connection_headers_defaults():
69
70
def test_get_remote_connection_headers_adds_auth_header_if_pass():
71
url = "http://user:pass@remote"
72
- headers = RemoteConnection.get_remote_connection_headers(parse.urlparse(url))
+ with pytest.warns(None) as record:
73
+ headers = RemoteConnection.get_remote_connection_headers(parse.urlparse(url))
74
assert headers.get("Authorization") == "Basic dXNlcjpwYXNz"
75
+ assert (
76
+ record[0].message.args[0]
77
+ == "Embedding username and password in URL could be insecure, use ClientConfig instead"
78
+ )
79
80
81
def test_get_remote_connection_headers_adds_keep_alive_if_requested():
0 commit comments