Skip to content

Commit

Permalink
Add test for regex validator must contain text
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Sep 13, 2023
1 parent c9657e2 commit 5866764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/tool_util/test_tool_linters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,7 @@ def test_inputs_validator_incompatibilities(lint_ctx):
in lint_ctx.error_messages
)
assert "Parameter [param_name]: expression validators are expected to contain text" in lint_ctx.error_messages
assert "Parameter [param_name]: regex validators are expected to contain text" in lint_ctx.error_messages
assert (
"Parameter [param_name]: '[' is no valid regular expression: unterminated character set at position 0"
in lint_ctx.error_messages
Expand All @@ -1407,7 +1408,7 @@ def test_inputs_validator_incompatibilities(lint_ctx):
assert len(lint_ctx.info_messages) == 1
assert not lint_ctx.valid_messages
assert len(lint_ctx.warn_messages) == 1
assert len(lint_ctx.error_messages) == 9
assert len(lint_ctx.error_messages) == 10


def test_inputs_validator_correct(lint_ctx):
Expand Down

0 comments on commit 5866764

Please sign in to comment.