mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Drop global setup_celery_includes
Should be handled by autouse fixture
This commit is contained in:
@@ -6,18 +6,13 @@ from galaxy.model.unittest_utils.store_fixtures import (
|
||||
one_hda_model_store_dict,
|
||||
)
|
||||
from galaxy_test.api.test_histories import ImportExportTests
|
||||
from galaxy_test.base.api import UsesCeleryTasks
|
||||
from galaxy_test.base.api_asserts import assert_has_keys
|
||||
from galaxy_test.base.populators import (
|
||||
DatasetCollectionPopulator,
|
||||
DatasetPopulator,
|
||||
)
|
||||
from galaxy_test.driver.integration_util import (
|
||||
IntegrationTestCase,
|
||||
setup_celery_includes,
|
||||
UsesCeleryTasks,
|
||||
)
|
||||
|
||||
celery_includes = setup_celery_includes()
|
||||
from galaxy_test.driver.integration_util import IntegrationTestCase
|
||||
|
||||
|
||||
class ImportExportHistoryOutputsToWorkingDirIntegrationTestCase(ImportExportTests, IntegrationTestCase):
|
||||
@@ -38,10 +33,6 @@ class ImportExportHistoryViaTasksIntegrationTestCase(ImportExportTests, Integrat
|
||||
task_based = True
|
||||
framework_tool_and_types = True
|
||||
|
||||
@classmethod
|
||||
def handle_galaxy_config_kwds(cls, config):
|
||||
cls.setup_celery_config(config)
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self._set_up_populators()
|
||||
@@ -62,10 +53,6 @@ class ImportExportHistoryContentsViaTasksIntegrationTestCase(IntegrationTestCase
|
||||
task_based = True
|
||||
framework_tool_and_types = True
|
||||
|
||||
@classmethod
|
||||
def handle_galaxy_config_kwds(cls, config):
|
||||
cls.setup_celery_config(config)
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self._set_up_populators()
|
||||
|
||||
@@ -7,24 +7,19 @@ from galaxy.model.unittest_utils.store_fixtures import (
|
||||
TEST_LIBRARY_NAME,
|
||||
)
|
||||
from galaxy.util import galaxy_directory
|
||||
from galaxy_test.base.api import UsesCeleryTasks
|
||||
from galaxy_test.base.populators import (
|
||||
DatasetPopulator,
|
||||
LibraryPopulator,
|
||||
uses_test_history,
|
||||
)
|
||||
from galaxy_test.driver.integration_util import (
|
||||
IntegrationTestCase,
|
||||
setup_celery_includes,
|
||||
UsesCeleryTasks,
|
||||
)
|
||||
|
||||
celery_includes = setup_celery_includes()
|
||||
from galaxy_test.driver.integration_util import IntegrationTestCase
|
||||
|
||||
|
||||
class MaterializeDatasetInstanceTasaksIntegrationTestCase(IntegrationTestCase, UsesCeleryTasks):
|
||||
@classmethod
|
||||
def handle_galaxy_config_kwds(cls, config):
|
||||
cls.setup_celery_config(config)
|
||||
super().handle_galaxy_config_kwds(config)
|
||||
test_data_root = os.path.join(galaxy_directory(), "test-data")
|
||||
config["file_sources"] = [
|
||||
{
|
||||
|
||||
@@ -11,19 +11,14 @@ from typing import (
|
||||
|
||||
from galaxy_test.api.test_workflows import RunsWorkflowFixtures
|
||||
from galaxy_test.base import api_asserts
|
||||
from galaxy_test.base.api import UsesCeleryTasks
|
||||
from galaxy_test.base.populators import (
|
||||
DatasetPopulator,
|
||||
RunJobsSummary,
|
||||
WorkflowPopulator,
|
||||
)
|
||||
from galaxy_test.driver.integration_setup import PosixFileSourceSetup
|
||||
from galaxy_test.driver.integration_util import (
|
||||
IntegrationTestCase,
|
||||
setup_celery_includes,
|
||||
UsesCeleryTasks,
|
||||
)
|
||||
|
||||
celery_includes = setup_celery_includes()
|
||||
from galaxy_test.driver.integration_util import IntegrationTestCase
|
||||
|
||||
|
||||
class WorkflowTasksIntegrationTestCase(
|
||||
@@ -32,11 +27,6 @@ class WorkflowTasksIntegrationTestCase(
|
||||
|
||||
framework_tool_and_types = True
|
||||
|
||||
@classmethod
|
||||
def handle_galaxy_config_kwds(cls, config):
|
||||
PosixFileSourceSetup.handle_galaxy_config_kwds(config, cls)
|
||||
cls.setup_celery_config(config)
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.dataset_populator = DatasetPopulator(self.galaxy_interactor)
|
||||
|
||||
Reference in New Issue
Block a user