Skip to content

Commit

Permalink
validate the contents, not the path to file
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Apr 22, 2024
1 parent 5fa2617 commit bf14bcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy_test/api/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,9 @@ def test_export_invocation_bco(self):
with self.dataset_populator.test_history() as history_id:
summary = self._run_workflow(WORKFLOW_SIMPLE, test_data={"input1": "hello world"}, history_id=history_id)
invocation_id = summary.invocation_id
bco = self.workflow_populator.download_invocation_to_store(invocation_id, extension="bco.json")
bco_path = self.workflow_populator.download_invocation_to_store(invocation_id, extension="bco.json")
with open(bco_path) as f:
bco = json.load(f)
self.workflow_populator.validate_biocompute_object(bco)
assert bco["provenance_domain"]["name"] == "Simple Workflow"

Expand Down

0 comments on commit bf14bcd

Please sign in to comment.