mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-05 16:07:52 +08:00
23 lines
449 B
Python
23 lines
449 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
from galaxy_test.driver.driver_util import GalaxyTestDriver
|
|
|
|
|
|
class ConfigObject:
|
|
framework_tool_and_types = True
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def real_driver():
|
|
if not os.environ.get("GALAXY_TEST_ENVIRONMENT_CONFIGURED"):
|
|
driver = GalaxyTestDriver()
|
|
driver.setup(ConfigObject)
|
|
try:
|
|
yield driver
|
|
finally:
|
|
driver.tear_down()
|
|
else:
|
|
yield None
|