Skip to content

Commit 07c96e0

Browse files
committed
fix test
1 parent 2b684e7 commit 07c96e0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

unit_tests/sources/declarative/spec/test_spec.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ def test_given_already_migrated_config_no_control_message_is_emitted(migration_m
265265

266266
def test_given_list_of_transformations_when_transform_config_then_config_is_transformed() -> None:
267267
input_config = {"planet_code": "CRSC"}
268+
expected_config = {
269+
"planet_name": "Coruscant",
270+
"planet_population": 3_000_000_000_000,
271+
}
268272
spec = component_spec(
269273
connection_specification={},
270274
parameters={},
@@ -304,10 +308,9 @@ def test_given_list_of_transformations_when_transform_config_then_config_is_tran
304308
),
305309
],
306310
)
307-
assert spec.transform_config(input_config) == {
308-
"planet_name": "Coruscant",
309-
"planet_population": 3_000_000_000_000,
310-
}
311+
spec.transform_config(input_config)
312+
313+
assert input_config == expected_config
311314

312315

313316
def test_given_valid_config_value_when_validating_then_no_exception_is_raised() -> None:

0 commit comments

Comments
 (0)