Skip to content

Commit 99e5dfd

Browse files
committed
Rework invocation report tests for changes in Galaxy 25.0
1 parent a8fe8d5 commit 99e5dfd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bioblend/_tests/TestGalaxyInvocations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ def test_get_invocation_report(self):
8787
invocation = self._invoke_workflow()
8888

8989
invocation_id = invocation["id"]
90-
workflow_id = invocation["workflow_id"]
9190
report = self.gi.invocations.get_invocation_report(invocation_id)
92-
assert report["workflows"] == {workflow_id: {"name": "paste_columns"}}
91+
assert "paste_columns" in report["markdown"]
9392
with contextlib.suppress(Exception):
9493
# This can fail if dependencies as weasyprint are not installed on the Galaxy server
9594
ret = self.gi.invocations.get_invocation_report_pdf(invocation_id, "report.pdf")

bioblend/_tests/TestGalaxyObjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def test_step_jobs_summary(self):
399399
def test_report(self):
400400
inv = self._obj_invoke_workflow()
401401
report = inv.report()
402-
assert report["workflows"] == {self.workflow.id: {"name": "paste_columns"}}
402+
assert "paste_columns" in report["markdown"]
403403

404404
@test_util.skip_unless_galaxy("release_20.09")
405405
def test_biocompute_object(self):

0 commit comments

Comments
 (0)