Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 41dca6e

Browse files
committed
Update test run configuration
* Display correct APPLITOOLS_BATCH_NAME in the dashboard
1 parent 484daa1 commit 41dca6e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

tests/functional/eyes_images/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import 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()

tests/functional/eyes_selenium/conftest.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from selenium.common.exceptions import WebDriverException
66
from 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__
910
from 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

0 commit comments

Comments
 (0)