Skip to content

Commit

Permalink
Allow testing that a function return value is None
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Jun 15, 2023
1 parent 3b8e142 commit 2f7288d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bioblend/_tests/TestGalaxyInvocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def test_get_invocation_report(self):
assert report["workflows"] == {workflow_id: {"name": "paste_columns"}}
with contextlib.suppress(Exception):
# This can fail if dependencies as weasyprint are not installed on the Galaxy server
self.gi.invocations.get_invocation_report_pdf(invocation_id, "report.pdf")
ret = self.gi.invocations.get_invocation_report_pdf(invocation_id, "report.pdf")
assert ret is None

@test_util.skip_unless_galaxy("release_20.09")
def test_get_invocation_biocompute_object(self):
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ warn_unused_ignores = True
warn_unreachable = True
[mypy-bioblend._tests.*]
disallow_untyped_defs = False
# Allow testing that a function return value is None
disable_error_code = func-returns-value

[options]
install_requires =
Expand Down

0 comments on commit 2f7288d

Please sign in to comment.