Files
galaxy/lib/tool_shed/test/conftest.py
T
mvdbeek ba593057c2 Use `galaxy_driver_class` to create tool shed driver
Use ``autouse`` fixture to configure test driver
2022-11-01 18:45:07 +00:00

17 lines
360 B
Python

import os
import pytest
from tool_shed.test.base import driver
@pytest.fixture(scope="session")
def tool_shed_test_driver():
if not os.environ.get("GALAXY_TEST_ENVIRONMENT_CONFIGURED"):
ts_driver = driver.ToolShedTestDriver()
ts_driver.setup()
try:
yield ts_driver
finally:
ts_driver.tear_down()