Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dayamlchecker/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,8 @@ class MessageDefinition:
template="question block is missing an `id`: {snippet}",
),
MessageId.MULTIPLE_MANDATORY_BLOCKS: MessageDefinition(
code="EG415",
severity=Severity.ERROR,
code="WG415",
severity=Severity.WARNING,
finding_class=FindingClass.GENERAL,
summary="Interview has more than one mandatory block",
template="interview has more than one `mandatory: True` block: {labels}",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_yaml_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2478,7 +2478,7 @@ def test_multiple_mandatory_blocks_are_reported(self):
"""
errs = find_errors_from_string(yaml_text, input_file="<string_invalid>")
self.assertTrue(
_has_code(errs, "EG415"),
_has_code(errs, "WG415"),
f"Expected multiple-mandatory-blocks finding, got: {errs}",
)

Expand Down
Loading