From 56b3592e06b81baadfe3a827e1b5b9b4923f0103 Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Thu, 5 Dec 2024 18:19:41 -0500 Subject: [PATCH] Fix unit test --- tests/unit/test_model_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_model_config.py b/tests/unit/test_model_config.py index 9d1de1b..d914213 100644 --- a/tests/unit/test_model_config.py +++ b/tests/unit/test_model_config.py @@ -90,7 +90,10 @@ def test_update_from() -> None: "grants": {"two": "fine", "+one": "some"}, "snapshot_table_column_names": {"first_column": "dbt_ack", "second_column": "dbt_more"}, } - updated_obj = initial_obj.update_from(update_dct.copy(), SubstituteAdapterConfig) + updated_dict = initial_obj.update_from( + initial_obj.to_dict(), update_dct.copy(), SubstituteAdapterConfig + ) + updated_obj = ThingWithMergeBehavior.from_dict(updated_dict) assert updated_obj.default_behavior == 3 assert updated_obj.tags == ["one", "two", "five"]