From e0a41a095c30f19e01fea4abf80a3e2ff7865208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Fale=C5=A1n=C3=ADk?= Date: Wed, 7 Jun 2017 11:00:35 +0200 Subject: [PATCH] remove the allure reference, ensure things are updated --- .travis.yml | 2 +- testing/conftest.py | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5f849ed..4857afac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: - '3.5' - '3.6' - pypy -install: pip install tox-travis coveralls +install: pip install -U setuptools tox tox-travis coveralls script: - tox after_success: diff --git a/testing/conftest.py b/testing/conftest.py index ce0d5fce..edb16a3c 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -import allure import pytest import codecs @@ -38,10 +37,3 @@ def browser(selenium, httpserver, request): httpserver.serve_content(codecs.open(testfilename, mode='r', encoding='utf-8').read()) selenium.get(httpserver.url) return CustomBrowser(selenium) - - -def pytest_exception_interact(node, call, report): - if selenium_browser is not None: - allure.attach( - 'Error screenshot', selenium_browser.get_screenshot_as_png(), allure.attach_type.PNG) - allure.attach('Error traceback', str(report.longrepr), allure.attach_type.TEXT)