This repository was archived by the owner on Aug 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 22
33import pytest
44
5- from applitools .images import Eyes , __version__
5+ from applitools .images import Eyes
6+ from applitools .images .__version__ import __version__
67
78
89@pytest .fixture
@@ -15,4 +16,8 @@ def _setup_env_vars_for_session():
1516 if not python_version :
1617 import platform
1718 python_version = platform .python_version ()
18- os .environ ['APPLITOOLS_BATCH_NAME' ] = 'Python {} | Images SDK {} Tests' .format (python_version , __version__ )
19+ os .environ ['APPLITOOLS_BATCH_NAME' ] = 'Python {} | Images SDK {}' .format (python_version , __version__ )
20+
21+
22+ def pytest_generate_tests (metafunc ):
23+ _setup_env_vars_for_session ()
Original file line number Diff line number Diff line change 55from selenium .common .exceptions import WebDriverException
66from selenium .webdriver .remote .remote_connection import RemoteConnection
77
8- from applitools .core import logger , __version__
8+ from applitools .core import logger
9+ from applitools .selenium .__version__ import __version__
910from applitools .selenium import Eyes , EyesWebDriver , eyes_selenium_utils
1011
1112
@@ -14,8 +15,11 @@ def _setup_env_vars_for_session():
1415 if not python_version :
1516 import platform
1617 python_version = platform .python_version ()
17- os .environ ['APPLITOOLS_BATCH_NAME' ] = 'Python {} | Selenium SDK {} Tests' .format (
18- python_version , __version__ )
18+ os .environ ['APPLITOOLS_BATCH_NAME' ] = 'Python {} | Selenium SDK {}' .format (python_version , __version__ )
19+
20+
21+ def pytest_generate_tests (metafunc ):
22+ _setup_env_vars_for_session ()
1923
2024
2125@pytest .fixture
You can’t perform that action at this time.
0 commit comments