File tree Expand file tree Collapse file tree
unit_tests/sources/declarative/spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ def test_given_list_of_transformations_when_transform_config_then_config_is_tran
210210
211211
212212def test_given_valid_config_value_when_validating_then_no_exception_is_raised () -> None :
213+ input_config = {"test_field" : {"field_to_validate" : "test" }}
213214 spec = component_spec (
214215 connection_specification = {},
215216 parameters = {},
@@ -233,14 +234,16 @@ def test_given_valid_config_value_when_validating_then_no_exception_is_raised()
233234 },
234235 }
235236 ),
237+ config = input_config ,
238+ condition = "" ,
236239 )
237240 ],
238241 )
239- input_config = {"test_field" : {"field_to_validate" : "test" }}
240242 spec .validate_config (input_config )
241243
242244
243245def test_given_invalid_config_value_when_validating_then_exception_is_raised () -> None :
246+ input_config = {"test_field" : {"field_to_validate" : 123 }}
244247 spec = component_spec (
245248 connection_specification = {},
246249 parameters = {},
@@ -263,10 +266,11 @@ def test_given_invalid_config_value_when_validating_then_exception_is_raised() -
263266 },
264267 }
265268 ),
269+ config = input_config ,
270+ condition = "" ,
266271 )
267272 ],
268273 )
269- input_config = {"test_field" : {"field_to_validate" : 123 }}
270274
271275 with pytest .raises (Exception ):
272276 spec .validate_config (input_config )
You can’t perform that action at this time.
0 commit comments