Skip to content

Commit 4727b28

Browse files
committed
fix predicate validator test
1 parent cf1b01c commit 4727b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit_tests/sources/declarative/validators/test_predicate_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ 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)
43+
assert error_message in str(context.value)
4444
assert strategy.validate_called
4545
assert strategy.validated_value == test_value
4646

0 commit comments

Comments
 (0)