Skip to content

Commit

Permalink
change to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Nov 8, 2024
1 parent 66e85f4 commit 5ec3732
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/linters/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
try:
ast.parse(filter.text, mode="eval")
except Exception as e:
lint_ctx.error(
lint_ctx.warn(
f"Filter '{filter.text}' is no valid expression: {str(e)}",
linter=cls.name(),
node=filter,
Expand Down
8 changes: 4 additions & 4 deletions test/unit/tool_util/test_tool_linters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1753,16 +1753,16 @@ def test_outputs_filter_expression(lint_ctx):
assert "2 outputs found." in lint_ctx.info_messages
assert len(lint_ctx.info_messages) == 1
assert not lint_ctx.valid_messages
assert not lint_ctx.warn_messages
assert (
"Filter 'another invalid condition' is no valid expression: invalid syntax (<unknown>, line 1)"
in lint_ctx.error_messages
in lint_ctx.warn_messages
)
assert (
"Filter 'another invalid condition' is no valid expression: invalid syntax (<unknown>, line 1)"
in lint_ctx.error_messages
in lint_ctx.warn_messages
)
assert len(lint_ctx.error_messages) == 2
assert len(lint_ctx.warn_messages) == 2
assert not lint_ctx.error_messages


def test_stdio_default_for_default_profile(lint_ctx):
Expand Down

0 comments on commit 5ec3732

Please sign in to comment.