Skip to content

Commit cb8872c

Browse files
authored
Remove spelling mistake from the method name (#11051)
Co-authored-by: vikas <Vikas Goel>
1 parent 760305b commit cb8872c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

py/selenium/webdriver/remote/remote_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _identify_http_proxy_auth(self):
135135
url = url[url.find(":") + 3:]
136136
return "@" in url and len(url[:url.find('@')]) > 0
137137

138-
def _seperate_http_proxy_auth(self):
138+
def _separate_http_proxy_auth(self):
139139
url = self._proxy_url
140140
protocol = url[:url.find(":") + 3]
141141
no_protocol = url[len(protocol):]
@@ -156,7 +156,7 @@ def _get_connection_manager(self):
156156
from urllib3.contrib.socks import SOCKSProxyManager
157157
return SOCKSProxyManager(self._proxy_url, **pool_manager_init_args)
158158
elif self._identify_http_proxy_auth():
159-
self._proxy_url, self._basic_proxy_auth = self._seperate_http_proxy_auth()
159+
self._proxy_url, self._basic_proxy_auth = self._separate_http_proxy_auth()
160160
pool_manager_init_args['proxy_headers'] = urllib3.make_headers(
161161
proxy_basic_auth=self._basic_proxy_auth)
162162
return urllib3.ProxyManager(self._proxy_url, **pool_manager_init_args)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_get_proxy_url_none(mock_proxy_settings_missing):
7272
def test_get_proxy_url_http_auth(mock_proxy_auth_settings):
7373
remote_connection = RemoteConnection('http://remote', keep_alive=False)
7474
proxy_url = remote_connection._get_proxy_url()
75-
raw_proxy_url, basic_auth_string = remote_connection._seperate_http_proxy_auth()
75+
raw_proxy_url, basic_auth_string = remote_connection._separate_http_proxy_auth()
7676
assert proxy_url == "http://user:password@http_proxy.com:8080"
7777
assert raw_proxy_url == "http://http_proxy.com:8080"
7878
assert basic_auth_string == "user:password"
@@ -81,7 +81,7 @@ def test_get_proxy_url_http_auth(mock_proxy_auth_settings):
8181
def test_get_proxy_url_https_auth(mock_proxy_auth_settings):
8282
remote_connection = RemoteConnection('https://remote', keep_alive=False)
8383
proxy_url = remote_connection._get_proxy_url()
84-
raw_proxy_url, basic_auth_string = remote_connection._seperate_http_proxy_auth()
84+
raw_proxy_url, basic_auth_string = remote_connection._separate_http_proxy_auth()
8585
assert proxy_url == "https://user:password@https_proxy.com:8080"
8686
assert raw_proxy_url == "https://https_proxy.com:8080"
8787
assert basic_auth_string == "user:password"

0 commit comments

Comments
 (0)