From a9e947dfd0ce0c43fe7cba71eac659098be3959c Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 18 Sep 2024 18:16:14 -0400 Subject: [PATCH] fix mock in unit test after removing deprecated snowplow method --- tests/unit/test_behavior_flags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_behavior_flags.py b/tests/unit/test_behavior_flags.py index 6f4746c438c..d899a83f283 100644 --- a/tests/unit/test_behavior_flags.py +++ b/tests/unit/test_behavior_flags.py @@ -22,7 +22,8 @@ def snowplow_tracker(mocker): add_callback_to_manager(track_behavior_change_warn) # don't make a call, catch the request - snowplow_tracker = mocker.patch("dbt.tracking.tracker.track_struct_event") + # to avoid confusion, this is snowplow_tracker's track, not our wrapper that's also named track + snowplow_tracker = mocker.patch("dbt.tracking.tracker.track") yield snowplow_tracker