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:
Pierrick Roger
2018-04-26 12:03:01 +02:00
parent 2be9e1f637
commit 87cdd2156d
2 changed files with 13 additions and 0 deletions
Binary file not shown.
+13
View File
@@ -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")