mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
make it a warning
This commit is contained in:
@@ -240,4 +240,4 @@ class BioToolsValid(Linter):
|
||||
continue
|
||||
metadata_source = ApiBiotoolsMetadataSource()
|
||||
if not metadata_source.get_biotools_metadata(xref["value"]):
|
||||
lint_ctx.error(f'No entry {xref["value"]} in bio.tools.', linter=cls.name(), node=tool_node)
|
||||
lint_ctx.warn(f'No entry {xref["value"]} in bio.tools.', linter=cls.name(), node=tool_node)
|
||||
|
||||
@@ -1095,11 +1095,11 @@ def test_general_valid_new_profile_fmt(lint_ctx):
|
||||
def test_general_valid_biotools(lint_ctx):
|
||||
tool_source = get_xml_tool_source(GENERAL_VALID_BIOTOOLS)
|
||||
run_lint_module(lint_ctx, general, tool_source)
|
||||
assert "No entry johnscoolbowtie in bio.tools." in lint_ctx.error_messages
|
||||
assert "No entry johnscoolbowtie in bio.tools." in lint_ctx.warn_messages
|
||||
assert not lint_ctx.info_messages
|
||||
assert len(lint_ctx.valid_messages) == 4
|
||||
assert not lint_ctx.warn_messages
|
||||
assert len(lint_ctx.error_messages) == 1
|
||||
assert len(lint_ctx.warn_messages) == 1
|
||||
assert not lint_ctx.error_messages
|
||||
|
||||
|
||||
def test_help_multiple(lint_ctx):
|
||||
|
||||
Reference in New Issue
Block a user