Skip to content

Commit

Permalink
fix mock in unit test after removing deprecated snowplow method
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Sep 18, 2024
1 parent 3e437a6 commit a9e947d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_behavior_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a9e947d

Please sign in to comment.