def manage_logging(enable_eyes_log=None, enable_http_debug_log=None): if enable_eyes_log is True: logger.set_logger(StdoutLogger()) logger.open_() elif enable_eyes_log is False: logger.close() logger.set_logger(None) if enable_http_debug_log is True: six.moves.http_client.HTTPConnection.debuglevel = 1 elif enable_http_debug_log is False: six.moves.http_client.HTTPConnection.debuglevel = 0
RunningSession, StdoutLogger, TestResults, logger, ) from applitools.common.utils import iteritems from applitools.common.utils.json_utils import attr_from_dict from applitools.core import ServerConnector from tests.utils import get_session_results, send_result_report try: from contextlib import ExitStack except ImportError: from contextlib2 import ExitStack logger.set_logger(StdoutLogger()) here = path.abspath(path.dirname(__file__)) TRAVIS_COMMIT = os.getenv("TRAVIS_COMMIT") BUILD_TAG = os.getenv("BUILD_TAG") RUNNING_ON_TRAVIS_REGRESSION_SUITE = TRAVIS_COMMIT and BUILD_TAG is None @pytest.fixture(scope="session") def eyes_runner_class(): return lambda: None @pytest.fixture(scope="session") def eyes_runner(eyes_runner_class):