Delay import of optional dependency.

Should allow pytest without loading the whole app.
This commit is contained in:
John Chilton
2025-10-23 21:18:02 -04:00
parent 72e34985ef
commit a410532630
+2 -1
View File
@@ -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: