mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Also: - Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected by pytest only because they were `unittest.TestCase` derived, but normally pytest collects only test classes whose name starts with `Test`, see https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
from galaxy_test.api.test_tools import TestsTools
|
|
from galaxy_test.base.populators import (
|
|
DatasetCollectionPopulator,
|
|
DatasetPopulator,
|
|
)
|
|
from galaxy_test.driver import integration_util
|
|
|
|
|
|
class TestExtendedMetadataMappingIntegration(integration_util.IntegrationTestCase, TestsTools):
|
|
"""Test mapping over tools with extended metadata enabled."""
|
|
|
|
dataset_populator: DatasetPopulator
|
|
framework_tool_and_types = True
|
|
|
|
@classmethod
|
|
def handle_galaxy_config_kwds(cls, config):
|
|
config["metadata_strategy"] = "extended"
|
|
config["object_store_store_by"] = "uuid"
|
|
config["retry_metadata_internally"] = False
|
|
|
|
def setUp(self):
|
|
super().setUp()
|
|
self.dataset_populator = DatasetPopulator(self.galaxy_interactor)
|
|
self.dataset_collection_populator = DatasetCollectionPopulator(self.galaxy_interactor)
|
|
|
|
def test_map_over_collection(self, history_id):
|
|
hdca_id = self._build_pair(history_id, ["123", "456"])
|
|
inputs = {
|
|
"input1": {"batch": True, "values": [{"src": "hdca", "id": hdca_id}]},
|
|
}
|
|
self._run_and_check_simple_collection_mapping(history_id, inputs)
|