From 59e48f273801151863ce852200f6b5e165f9097f Mon Sep 17 00:00:00 2001 From: xjules Date: Thu, 26 Oct 2023 14:21:08 +0200 Subject: [PATCH] Fix test regex --- tests/unit_tests/config/test_ert_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/config/test_ert_config.py b/tests/unit_tests/config/test_ert_config.py index f43474fb1fc..1ccfaf5eaa8 100644 --- a/tests/unit_tests/config/test_ert_config.py +++ b/tests/unit_tests/config/test_ert_config.py @@ -707,8 +707,8 @@ def test_default_ens_path(tmpdir): "max_running_value, expected_error", [ (100, None), # positive integer - (-1, "QUEUE_OPTION MAX_RUNNING is negative"), # negative integer - ("not_an_integer", "QUEUE_OPTION MAX_RUNNING is not an integer"), # non-integer + (-1, "not valid positive integer"), # negative integer + ("not_an_integer", "not valid positive integer"), # non-integer ], ) def test_queue_config_max_running_invalid_values(max_running_value, expected_error): @@ -748,7 +748,7 @@ def test_that_queue_config_dict_negative_value_invalid( ) with pytest.raises( expected_exception=ConfigValidationError, - match="QUEUE_OPTION MAX_RUNNING is negative", + match="not valid positive integer", ): ErtConfig.from_dict(config_dict)