make it a warning

This commit is contained in:
Matthias Bernt
2024-03-11 15:23:52 +01:00
parent 4e1a6d3b94
commit 3dae54a672
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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):