Skip to content

Commit 31900fd

Browse files
committed
update test_spec
1 parent a2f4508 commit 31900fd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

unit_tests/sources/declarative/spec/test_spec.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def test_given_list_of_transformations_when_transform_config_then_config_is_tran
210210

211211

212212
def 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

243245
def 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)

0 commit comments

Comments
 (0)