Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Dec 5, 2024
1 parent bfb08a0 commit 56b3592
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/test_model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 56b3592

Please sign in to comment.