File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
unit_tests/sources/declarative/validators Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ def test_given_invalid_path_when_validate_then_raise_key_error(self):
4040
4141 with pytest .raises (KeyError ) as context :
4242 validator .validate (test_data )
43- assert "Error validating path" in str (context .exception )
44- assert not strategy .validate_called
43+
44+ assert "Error validating path" in str (context .exception )
45+ assert not strategy .validate_called
4546
4647 def test_given_strategy_fails_when_validate_then_raise_value_error (self ):
4748 error_message = "Invalid email format"
@@ -53,10 +54,10 @@ def test_given_strategy_fails_when_validate_then_raise_value_error(self):
5354 with pytest .raises (ValueError ) as context :
5455 validator .validate (test_data )
5556
56- assert "Error validating value" in str (context .exception )
57- assert error_message in str (context .exception )
58- assert strategy .validate_called
59- assert strategy .validated_value == "invalid-email"
57+ assert "Error validating value" in str (context .exception )
58+ assert error_message in str (context .exception )
59+ assert strategy .validate_called
60+ assert strategy .validated_value == "invalid-email"
6061
6162 def test_given_empty_path_list_when_validate_then_validate_raises_exception (self ):
6263 strategy = MockValidationStrategy ()
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ def test_given_invalid_input_when_validate_then_raise_value_error(self):
4040 with pytest .raises (ValueError ) as context :
4141 validator .validate ()
4242
43- assert error_message in str (context .exception )
44- assert strategy .validate_called
45- assert strategy .validated_value == test_value
43+ assert error_message in str (context .exception )
44+ assert strategy .validate_called
45+ assert strategy .validated_value == test_value
4646
4747 def test_given_complex_object_when_validate_then_successful (self ):
4848 strategy = MockValidationStrategy ()
You can’t perform that action at this time.
0 commit comments