diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-01-03 12:11:23 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-01-03 12:11:23 +0100 |
commit | 0feb9db2b57725d47a7b3cc1e84ba5b9a7553b12 (patch) | |
tree | 94c87b244d6e8a4312c271824891dfa272b684ff /test/unit/conftest.py | |
parent | 702eefd252a112375c2da6a9ae4b39915fc2dbf4 (diff) | |
download | browser-extension-0feb9db2b57725d47a7b3cc1e84ba5b9a7553b12.tar.gz browser-extension-0feb9db2b57725d47a7b3cc1e84ba5b9a7553b12.zip |
add "blocking" and "repos" object stores
Diffstat (limited to 'test/unit/conftest.py')
-rw-r--r-- | test/unit/conftest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/conftest.py b/test/unit/conftest.py index beffaf5..e7be339 100644 --- a/test/unit/conftest.py +++ b/test/unit/conftest.py @@ -122,7 +122,8 @@ def _execute_in_page_context(driver, script, args): try: result = driver.execute_script(script_injector_script, script_url, args) - if type(result) == list and result[0] == 'haketilo_selenium_error': + if type(result) is list and len(result) == 2 and \ + result[0] == 'haketilo_selenium_error': raise Exception(result[1]) return result except Exception as e: |