Closed lalver1 closed 5 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
benefits/core
analytics.py
Project Total
This report was generated by python-coverage-comment-action
Looks like test_Event_update_event_properties()
and test_Event_update_user_properties()
in test_analytics.py
already test the feature added in this PR, so new tests may not be required.
Thanks, that makes sense. I added 4 new tests to test the new behavior of ViewedPageEvent
. They are very similar to the Event
tests but I think that this is ok since the new behavior of ViewedPageEvent
is similar to the behavior of Event
.
Thanks @thekaveman and @angela-tran!
Closes #2034.
Uses request.GET.get() to get the UTM code. If a UTM code is not present in the query string, returns
null
for that UTM code.How to test
Using a local instance of
benefits
, send a request that looks something likehttp://localhost:port/?utm_campaign=transit
. Verify that the propertyutm_campaign
has been added toevent_properties
anduser_properties
.