mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-30 16:58:03 +08:00
Start writing upload test for isa-tab.
Do not know how to read zip file content and submit it to uploader for a composite type.
This commit is contained in:
Binary file not shown.
@@ -219,6 +219,19 @@ class ToolsUploadTestCase(api.ApiTestCase):
|
||||
roadmaps_content = self._get_roadmaps_content(history_id, dataset)
|
||||
assert roadmaps_content.strip() == "roadmaps\ncontent", roadmaps_content
|
||||
|
||||
@skip_without_datatype("isa-tab")
|
||||
def test_composite_datatype_isatab(self):
|
||||
zip_path = TestDataResolver().get_filename("MTBLS6.zip")
|
||||
with self.dataset_populator.test_history() as history_id:
|
||||
payload = self.dataset_populator.upload_payload(
|
||||
history_id,
|
||||
"????", # content
|
||||
file_type="zip"
|
||||
)
|
||||
run_response = self.dataset_populator.tools_post(payload)
|
||||
self.dataset_populator.wait_for_tool_run(history_id, run_response)
|
||||
datasets = run_response.json()["outputs"]
|
||||
|
||||
def test_upload_dbkey(self):
|
||||
with self.dataset_populator.test_history() as history_id:
|
||||
payload = self.dataset_populator.upload_payload(history_id, "Test123", dbkey="hg19")
|
||||
|
||||
Reference in New Issue
Block a user