Skip to content

Commit

Permalink
[py] fix chrome options import and unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Aug 2, 2019
1 parent f7b9b9e commit 25ad82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/chromium/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import base64
import os

from selenium.webdriver import DesiredCapabilities
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.options import ArgOptions


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_add_encoded_extension(options):
def test_get_extensions_from_extension_files(options, mocker):
null = 'NUL' if platform.system().lower() == 'windows' else '/dev/null'
mocker.patch(
'selenium.webdriver.chrome.options.open'.format(__name__)).return_value = open(null)
'selenium.webdriver.chromium.options.open'.format(__name__)).return_value = open(null)
mocker.patch('base64.b64encode').return_value = 'foo'.encode()
options._extension_files = ['foo']
assert 'foo' in options.extensions
Expand Down

0 comments on commit 25ad82a

Please sign in to comment.