From 1bd96f4a217408602e86a1943a8dfef9cad93f4c Mon Sep 17 00:00:00 2001 From: Andrei Botalov Date: Fri, 3 Aug 2018 17:16:18 +0300 Subject: [PATCH] Workaround https://github.com/pytest-dev/pytest/issues/3775 --- test/selenium/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/selenium/conftest.py b/test/selenium/conftest.py index ca9146220f9b..3921a27d553c 100644 --- a/test/selenium/conftest.py +++ b/test/selenium/conftest.py @@ -10,7 +10,8 @@ import urlparse import pytest -from pytest_selenium import pytest_selenium +# Wokaround https://github.com/pytest-dev/pytest/issues/3775 +from pytest_selenium import pytest_selenium as pt_selenium from selenium.webdriver.remote.remote_connection import ( LOGGER as SELENIUM_LOGGER) @@ -78,7 +79,7 @@ def gather_screenshot(item, report, driver, summary, extra): if pytest_html is not None: extra.append(pytest_html.extras.image(screenshot, 'Screenshot')) - pytest_selenium._gather_screenshot = gather_screenshot + pt_selenium._gather_screenshot = gather_screenshot patch_pytest_selenium_screenshot()