File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
unit_tests/sources/declarative/spec Expand file tree Collapse file tree 1 file changed +6
-2
lines changed 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
210
210
211
211
212
212
def test_given_valid_config_value_when_validating_then_no_exception_is_raised () -> None :
213
+ input_config = {"test_field" : {"field_to_validate" : "test" }}
213
214
spec = component_spec (
214
215
connection_specification = {},
215
216
parameters = {},
@@ -233,14 +234,16 @@ def test_given_valid_config_value_when_validating_then_no_exception_is_raised()
233
234
},
234
235
}
235
236
),
237
+ config = input_config ,
238
+ condition = "" ,
236
239
)
237
240
],
238
241
)
239
- input_config = {"test_field" : {"field_to_validate" : "test" }}
240
242
spec .validate_config (input_config )
241
243
242
244
243
245
def test_given_invalid_config_value_when_validating_then_exception_is_raised () -> None :
246
+ input_config = {"test_field" : {"field_to_validate" : 123 }}
244
247
spec = component_spec (
245
248
connection_specification = {},
246
249
parameters = {},
@@ -263,10 +266,11 @@ def test_given_invalid_config_value_when_validating_then_exception_is_raised() -
263
266
},
264
267
}
265
268
),
269
+ config = input_config ,
270
+ condition = "" ,
266
271
)
267
272
],
268
273
)
269
- input_config = {"test_field" : {"field_to_validate" : 123 }}
270
274
271
275
with pytest .raises (Exception ):
272
276
spec .validate_config (input_config )
You can’t perform that action at this time.
0 commit comments