We removed a deprecated method, snowplow_tracker.Tracker.track_struct_event(), and replaced it with the suggested method snowplow_tracker.Tracker.track(). The former was mocked in a unit test and it was expected to be called. After the update, it did not get called as this method no longer existed.
[x] I have run this code in development, and it appears to resolve the stated issue.
[x] This PR includes tests, or tests are not required or relevant for this PR.
[x] This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
[x] This PR includes type annotations for new and modified functions.
Problem
We removed a deprecated method,
snowplow_tracker.Tracker.track_struct_event()
, and replaced it with the suggested methodsnowplow_tracker.Tracker.track()
. The former was mocked in a unit test and it was expected to be called. After the update, it did not get called as this method no longer existed.Solution
Update the mock to reference the new method.
Checklist