Skip to content

Commit

Permalink
patch opera_gx test fails in windows (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiibrahim8 authored May 23, 2023
1 parent d552748 commit 1f2193b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_browsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,15 @@ def test_opera(self):
@unittest.skipIf(sys.platform not in ['win32', 'darwin'], 'Only supported on Windows and macOS')
def test_opera_gx(self):
self.__setup_opera_based(self.__binary_location.get(BrowserName.OPERA_GX))
self.__test_opera_based(opera_gx)
try:
self.__test_opera_based(opera_gx)
except KeyError as e:
if 'os_crypt' in str(e) and sys.platform == 'win32':
logger.warning('os_crypt not in keyfile, skipping test')
logger.warning('it is a common issue with Opera GX during testing')
self.skipTest('os_crypt not in keyfile')
else:
raise e

def test_vivaldi(self):
## Vivaldi requires a specific version of chromedriver, so we can't use __setup_chromium_based()
Expand Down

0 comments on commit 1f2193b

Please sign in to comment.