From 5866764993f2ace23a7bb2b29a1f4217b0b2f1fd Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:38:28 +0200 Subject: [PATCH] Add test for regex validator must contain text --- test/unit/tool_util/test_tool_linters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/tool_util/test_tool_linters.py b/test/unit/tool_util/test_tool_linters.py index bd5f3a3160e6..2813de6a18cb 100644 --- a/test/unit/tool_util/test_tool_linters.py +++ b/test/unit/tool_util/test_tool_linters.py @@ -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 @@ -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):