1+ # Copyright (c) 2025 Airbyte, Inc., all rights reserved.
2+
13from unittest import TestCase
24
35import pytest
@@ -26,7 +28,7 @@ def test_given_valid_input_validate_is_successful(self):
2628 test_value = "test@example.com"
2729 validator = PredicateValidator (value = test_value , strategy = strategy )
2830
29- validator .validate ()
31+ validator .validate (input_data = {} )
3032
3133 assert strategy .validate_called
3234 assert strategy .validated_value == test_value
@@ -38,7 +40,7 @@ def test_given_invalid_input_when_validate_then_raise_value_error(self):
3840 validator = PredicateValidator (value = test_value , strategy = strategy )
3941
4042 with pytest .raises (ValueError ) as context :
41- validator .validate ()
43+ validator .validate (input_data = {} )
4244
4345 assert error_message in str (context .value )
4446 assert strategy .validate_called
@@ -49,7 +51,7 @@ def test_given_complex_object_when_validate_then_successful(self):
4951 test_value = {"user" : {"email" : "test@example.com" , "name" : "Test User" }}
5052 validator = PredicateValidator (value = test_value , strategy = strategy )
5153
52- validator .validate ()
54+ validator .validate (input_data = {} )
5355
5456 assert strategy .validate_called
5557 assert strategy .validated_value == test_value
0 commit comments