Permalink
Browse files

Workaround pytest-dev/pytest#3775

  • Loading branch information...
abotalov committed Aug 3, 2018
1 parent 6a23f86 commit d244ea07cc401f626f95af140f128af84fd0e460
Showing with 3 additions and 2 deletions.
  1. +3 −2 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()

0 comments on commit d244ea0

Please sign in to comment.