From a4105326302bca7910dc49996bb51b8cd2831097 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 15 Oct 2025 15:48:01 -0400 Subject: [PATCH] Delay import of optional dependency. Should allow pytest without loading the whole app. --- lib/galaxy_test/selenium/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy_test/selenium/conftest.py b/lib/galaxy_test/selenium/conftest.py index 4e717b1f1a0..e257637681e 100644 --- a/lib/galaxy_test/selenium/conftest.py +++ b/lib/galaxy_test/selenium/conftest.py @@ -2,13 +2,14 @@ import os import pytest -from galaxy_test.driver.driver_util import GalaxyTestDriver from galaxy_test.selenium.framework import SeleniumTestCase @pytest.fixture(scope="session") def real_driver(): if not os.environ.get("GALAXY_TEST_ENVIRONMENT_CONFIGURED"): + from galaxy_test.driver.driver_util import GalaxyTestDriver + driver = GalaxyTestDriver() driver.setup(SeleniumTestCase) try: