Skip to content

Commit

Permalink
Updated test with new create_workflow() parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Sep 24, 2020
1 parent 6ed1086 commit a508db0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions daliuge-translator/test/dropmake/test_pg_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def test_pg_eagle(self):

def test_cwl_translate(self):
import git
import io
import os
import shutil
import uuid
Expand Down Expand Up @@ -205,11 +206,12 @@ def test_cwl_translate(self):
cwl_out_zip = cwl_output_dir + '/workflow.zip'
output_list.append((cwl_out, cwl_out_zip))

cwl_contents = create_workflow(pgt, 'workflow.cwl')
buffer = io.BytesIO()
create_workflow(pgt, 'workflow.cwl', buffer)

# write output
with open(cwl_out_zip, 'wb') as f:
f.write(cwl_contents)
f.write(buffer.getvalue())

for out, zip in output_list:
zip_ref = zipfile.ZipFile(zip)
Expand Down

0 comments on commit a508db0

Please sign in to comment.