Skip to content

Commit 3bc1889

Browse files
committed
fix private method access in tests
1 parent a57423a commit 3bc1889

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

py/test/unit/selenium/webdriver/remote/remote_connection_tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,26 @@ def test_get_remote_connection_headers_adds_keep_alive_if_requested():
5050
def test_get_proxy_url_http(mock_proxy_settings):
5151
proxy = "http://http_proxy.com:8080"
5252
remote_connection = RemoteConnection("http://remote", keep_alive=False)
53-
proxy_url = remote_connection._get_proxy_url()
53+
proxy_url = remote_connection._client_config.get_proxy_url()
5454
assert proxy_url == proxy
5555

5656

5757
def test_get_proxy_url_https(mock_proxy_settings):
5858
proxy = "http://https_proxy.com:8080"
5959
remote_connection = RemoteConnection("https://remote", keep_alive=False)
60-
proxy_url = remote_connection._get_proxy_url()
60+
proxy_url = remote_connection._client_config.get_proxy_url()
6161
assert proxy_url == proxy
6262

6363

6464
def test_get_proxy_url_none(mock_proxy_settings_missing):
6565
remote_connection = RemoteConnection("https://remote", keep_alive=False)
66-
proxy_url = remote_connection._get_proxy_url()
66+
proxy_url = remote_connection._client_config.get_proxy_url()
6767
assert proxy_url is None
6868

6969

7070
def test_get_proxy_url_http_auth(mock_proxy_auth_settings):
7171
remote_connection = RemoteConnection("http://remote", keep_alive=False)
72-
proxy_url = remote_connection._get_proxy_url()
72+
proxy_url = remote_connection._client_config.get_proxy_url()
7373
raw_proxy_url, basic_auth_string = remote_connection._separate_http_proxy_auth()
7474
assert proxy_url == "http://user:password@http_proxy.com:8080"
7575
assert raw_proxy_url == "http://http_proxy.com:8080"
@@ -78,7 +78,7 @@ def test_get_proxy_url_http_auth(mock_proxy_auth_settings):
7878

7979
def test_get_proxy_url_https_auth(mock_proxy_auth_settings):
8080
remote_connection = RemoteConnection("https://remote", keep_alive=False)
81-
proxy_url = remote_connection._get_proxy_url()
81+
proxy_url = remote_connection._client_config.get_proxy_url()
8282
raw_proxy_url, basic_auth_string = remote_connection._separate_http_proxy_auth()
8383
assert proxy_url == "https://user:password@https_proxy.com:8080"
8484
assert raw_proxy_url == "https://https_proxy.com:8080"

0 commit comments

Comments
 (0)