Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy_test.api package
Subpackages
Submodules
galaxy_test.api.sharable module
- class galaxy_test.api.sharable.SharingApiTests[source]
Bases:
UsesApiTestCaseMixinIncludes some tests for the sharing functionality of a particular resource type.
galaxy_test.api.test_authenticate module
galaxy_test.api.test_configuration module
galaxy_test.api.test_dataset_collections module
- class galaxy_test.api.test_dataset_collections.TestDatasetCollectionsApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
- test_sample_sheet_map_over_preserves_columns(history_id)[source]
Test that mapping cat1 over a sample sheet preserves columns metadata.
- galaxy_test.api.test_dataset_collections.upload_flat_sample_sheet(dataset_populator: DatasetPopulator)[source]
- galaxy_test.api.test_dataset_collections.assert_one_collection_created_in_history(dataset_populator: DatasetPopulator, history_id: str)[source]
galaxy_test.api.test_datasets module
galaxy_test.api.test_datatypes module
galaxy_test.api.test_display_applications module
- class galaxy_test.api.test_display_applications.TestDisplayApplicationsApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_folder_contents module
- class galaxy_test.api.test_folder_contents.TestFolderContentsApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_folders module
- class galaxy_test.api.test_folders.TestFoldersApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_framework module
galaxy_test.api.test_group_roles module
- class galaxy_test.api.test_group_roles.TestGroupRolesApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_group_users module
- class galaxy_test.api.test_group_users.TestGroupUsersApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_groups module
- class galaxy_test.api.test_groups.TestGroupsApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_histories module
- class galaxy_test.api.test_histories.TestHistoriesApi[source]
Bases:
ApiTestCase,BaseHistories
- class galaxy_test.api.test_histories.ImportExportTests[source]
Bases:
BaseHistories
- class galaxy_test.api.test_histories.TestImportExportHistory[source]
Bases:
ApiTestCase,ImportExportTests
- class galaxy_test.api.test_histories.TestSharingHistory[source]
Bases:
ApiTestCase,BaseHistories,SharingApiTestsTests specific for the particularities of sharing Histories.
- class galaxy_test.api.test_histories.TestArchivingHistoriesWithoutExportRecord[source]
Bases:
ApiTestCase,BaseHistories
galaxy_test.api.test_history_contents module
- class galaxy_test.api.test_history_contents.TestHistoryContentsApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_history_contents_provenance module
galaxy_test.api.test_jobs module
- class galaxy_test.api.test_jobs.TestJobsApi[source]
Bases:
ApiTestCase,TestsTools- dataset_populator: DatasetPopulator
galaxy_test.api.test_libraries module
- class galaxy_test.api.test_libraries.TestLibrariesApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_licenses module
galaxy_test.api.test_page_revisions module
galaxy_test.api.test_pages module
- class galaxy_test.api.test_pages.BasePagesApiTestCase[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
- class galaxy_test.api.test_pages.TestPagesApi[source]
Bases:
BasePagesApiTestCase,SharingApiTests- create(name: str) str[source]
Creates a shareable resource with the given name and returns it’s ID.
- Parameters:
name – The name of the shareable resource to create.
- Returns:
The ID of the resource.
galaxy_test.api.test_roles module
- class galaxy_test.api.test_roles.TestRolesApi[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_search module
galaxy_test.api.test_tool_data module
Tests for the tool data API.
The tests for the DELETE endpoint can be found in the integration tests directory (tests/integration/test_tool_data_delete.py) since these tests can mutate the server config state.
galaxy_test.api.test_tools module
- class galaxy_test.api.test_tools.TestsTools[source]
Bases:
object- dataset_populator: DatasetPopulator
- dataset_collection_populator: BaseDatasetCollectionPopulator
- class galaxy_test.api.test_tools.TestToolsApi[source]
Bases:
ApiTestCase,TestsTools- dataset_populator: DatasetPopulator
- test_job_cache_copy_collection()[source]
Test job caching when collection_creates_list_2 is run with renamed dataset input.
This tests the scenario where: - A tool has both a dataset input and a collection input - The tool outputs a flat list (HDA elements) with structured_like - The dataset input is renamed between runs - Early caching misses due to name mismatch - Late caching (require_name_match=False) finds a match - copy_from_job is called during job preparation
This triggers https://github.com/galaxyproject/galaxy/issues/21556
galaxy_test.api.test_tools_upload module
- class galaxy_test.api.test_tools_upload.TestToolsUpload[source]
Bases:
ApiTestCase- dataset_populator: DatasetPopulator
galaxy_test.api.test_tours module
galaxy_test.api.test_users module
galaxy_test.api.test_visualizations module
- class galaxy_test.api.test_visualizations.TestVisualizationsApi[source]
Bases:
ApiTestCase,SharingApiTests
galaxy_test.api.test_webhooks module
galaxy_test.api.test_workflow_extraction module
- class galaxy_test.api.test_workflow_extraction.TestWorkflowExtractionApi[source]
Bases:
BaseWorkflowsApiTestCase
galaxy_test.api.test_workflows module
- class galaxy_test.api.test_workflows.RunsWorkflowFixtures[source]
Bases:
object- workflow_populator: WorkflowPopulator
- class galaxy_test.api.test_workflows.BaseWorkflowsApiTestCase[source]
Bases:
ApiTestCase,RunsWorkflowFixtures- dataset_populator: DatasetPopulator
- class galaxy_test.api.test_workflows.ChangeDatatypeTests[source]
Bases:
object- dataset_populator: DatasetPopulator
- workflow_populator: WorkflowPopulator
- class galaxy_test.api.test_workflows.TestWorkflowSharingApi[source]
Bases:
ApiTestCase,SharingApiTests
- class galaxy_test.api.test_workflows.TestWorkflowsApi[source]
Bases:
BaseWorkflowsApiTestCase,ChangeDatatypeTests- dataset_populator: DatasetPopulator
- run_workflow_with_valid_hashes(history_id: str, content_1: str, content_2: str, use_cached_job: bool = False)[source]
- test_run_workflow_conditional_subworkflow_step_map_over_expression_tool_with_extra_nesting()[source]
- test_run_workflow_conditional_subworkflow_step_map_over_expression_tool_with_extra_nesting_skip_all()[source]
- test_workflow_invocation_report_invalid_hdca_id()[source]
Test that an invalid HDCA id is reported in errors.
- test_reimport_invocation_with_files()[source]
Test that reimporting an invocation with include_files=True preserves dataset state and content.
- test_export_invocation_ro_crate_with_subworkflow()[source]
Test that subworkflow invocation datasets are included in export.
- test_export_reimport_reexport_invocation_with_subworkflow()[source]
Test that subworkflow invocation data survives a round-trip export/import/export cycle.
- test_run_subworkflow_with_required_input_with_default_unconnected()[source]
Test subworkflow with required parameter input that has default value but is unconnected.
This test verifies that a subworkflow can run successfully when: 1. Parent workflow has a subworkflow step 2. Subworkflow has a parameter input with:
optional: false (required)
default: “default_value”
The parameter input is NOT connected from parent workflow
The default value should be used automatically
Before the fix, this would fail with “Subworkflow has disconnected required input.” After the fix, the workflow runs successfully using the default value.
- test_subworkflow_validation_error_step_path()[source]
Test that validation errors from subworkflows include the full step path.
- test_invocation_job_metrics_with_subworkflow()[source]
Test that subworkflow job metrics are included in parent invocation metrics.
- test_run_subworkflow_with_optional_parent_input_connected_but_not_provided()[source]
Test subworkflow when parent’s optional input is connected but not provided.
This test verifies the fix for a bug where: 1. Parent workflow has an OPTIONAL input 2. That optional input IS CONNECTED to the subworkflow’s input 3. But NO DATA is provided for the parent’s optional input 4. Subworkflow has DELAYED SCHEDULING (via $link)
After the fix, the parent’s optional input outputs are pre-populated with NO_REPLACEMENT before the subworkflow executes, allowing it to properly handle the missing value.
This is different from the case where subworkflow inputs are completely unconnected, which was fixed in 2022.
- test_run_subworkflow_with_boolean_parameter_in_when_condition()[source]
Test boolean false parameter passed to subworkflow with when condition.
This test verifies that boolean parameters (especially false) are properly passed from parent to subworkflow when the subworkflow has: 1. Delayed scheduling (via $link) 2. A when condition that uses the boolean parameter
Previously, false values were converted to None in the when expression evaluation, causing “when_not_boolean” errors.
- class galaxy_test.api.test_workflows.TestAdminWorkflowsApi[source]
Bases:
BaseWorkflowsApiTestCase- require_admin_user = True
- class galaxy_test.api.test_workflows.TestCachedWorkflowsApi[source]
Bases:
BaseWorkflowsApiTestCase,ChangeDatatypeTests- dataset_populator: DatasetPopulator
galaxy_test.api.test_workflows_cwl module
Test CWL workflow functionality.
galaxy_test.api.test_workflows_from_yaml module
- class galaxy_test.api.test_workflows_from_yaml.TestWorkflowsFromYamlApi[source]
Bases:
BaseWorkflowsApiTestCase