mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Split test/base into lib/galaxy_test/base and lib/galaxy_test/driver. Dividing things on whether they import galaxy-app code or not - with the goal of a galaxy-test-base package that doesn't depend on galaxy-app and a galaxy-test-driver package that does. I've been refactoring around this division for a long time. Certain tests (namely the integration tests) always need to bootstrap Galaxy - but the API tests and the Selenium tests should be installable and runnable without Galaxy in the Python environment. So future galaxy-test-api and galaxy-test-selenium packages should have only an optional dependency on galaxy-test-driver. Properly sturcturing these namespaces is a precursor for real packages on PyPI, clean separation of the tool shed testing code, and cleans up all the flake8 noqa hacks in test/.
15 lines
589 B
Python
15 lines
589 B
Python
from galaxy.tool_util.verify.interactor import GalaxyInteractorApi
|
|
|
|
|
|
class TestCaseGalaxyInteractor(GalaxyInteractorApi):
|
|
|
|
def __init__(self, functional_test_case, test_user=None):
|
|
self.functional_test_case = functional_test_case
|
|
super(TestCaseGalaxyInteractor, self).__init__(
|
|
galaxy_url=functional_test_case.url,
|
|
master_api_key=functional_test_case.master_api_key,
|
|
api_key=functional_test_case.user_api_key,
|
|
test_user=test_user,
|
|
keep_outputs_dir=getattr(functional_test_case, "keepOutdir", None),
|
|
)
|