mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +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/.
29 lines
848 B
Python
29 lines
848 B
Python
"""Integration tests for the Pulsar embedded runner."""
|
|
|
|
import os
|
|
|
|
from galaxy_test.driver import integration_util
|
|
|
|
SCRIPT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
|
|
EMBEDDED_PULSAR_JOB_CONFIG_FILE = os.path.join(SCRIPT_DIRECTORY, "embedded_pulsar_job_conf.xml")
|
|
|
|
|
|
class EmbeddedPulsarIntegrationInstance(integration_util.IntegrationInstance):
|
|
"""Describe a Galaxy test instance with embedded pulsar configured."""
|
|
|
|
framework_tool_and_types = True
|
|
|
|
@classmethod
|
|
def handle_galaxy_config_kwds(cls, config):
|
|
config["job_config_file"] = EMBEDDED_PULSAR_JOB_CONFIG_FILE
|
|
|
|
|
|
instance = integration_util.integration_module_instance(EmbeddedPulsarIntegrationInstance)
|
|
|
|
test_tools = integration_util.integration_tool_runner([
|
|
"simple_constructs",
|
|
"multi_data_param",
|
|
"output_filter",
|
|
"vcf_bgzip_test",
|
|
])
|