@@ -23,7 +23,7 @@ def test_given_invalid_condition_raises_error(self):
2323 with pytest .raises (ValueError ) as exc_info :
2424 validation_strategy .validate ("{{ config['test_key'] == 'wrong_value' }}" )
2525
26- assert "Validation failed: Condition " in str (exc_info .value )
26+ assert "Condition evaluated to False " in str (exc_info .value )
2727 assert "evaluated to False" in str (exc_info .value )
2828
2929 def test_given_non_string_condition_raises_error (self ):
@@ -34,7 +34,7 @@ def test_given_non_string_condition_raises_error(self):
3434 with pytest .raises (ValueError ) as exc_info :
3535 validation_strategy .validate (value )
3636
37- assert f"Invalid condition: { value } . Should be a string." in str (exc_info .value )
37+ assert f"Invalid condition argument : { value } . Should be a string." in str (exc_info .value )
3838
3939 @pytest .mark .parametrize (
4040 "config, condition, expected_evaluation" ,
@@ -62,7 +62,7 @@ def test_given_complex_config_condition_validates_correctly(
6262 with pytest .raises (ValueError ) as exc_info :
6363 validation_strategy .validate (condition )
6464
65- assert "Validation failed: Condition " in str (exc_info .value )
65+ assert "Condition evaluated to False " in str (exc_info .value )
6666 assert "evaluated to False" in str (exc_info .value )
6767
6868 def test_given_empty_string_condition_raises_error (self ):
@@ -72,7 +72,7 @@ def test_given_empty_string_condition_raises_error(self):
7272 with pytest .raises (ValueError ) as exc_info :
7373 validation_strategy .validate ("" )
7474
75- assert "Validation failed: Condition '' evaluated to False" in str (exc_info .value )
75+ assert "Condition evaluated to False" in str (exc_info .value )
7676
7777 def test_given_invalid_jinja_syntax_raises_error (self ):
7878 config = {}
0 commit comments