Show campaign QR codes for email as well as postcard.
CI / test (pull_request) Successful in 21s

Closes #13.
This commit is contained in:
2026-09-01 13:21:41 -05:00
parent bc7c47a69c
commit 0a91308295
4 changed files with 22 additions and 3 deletions
+5
View File
@@ -1554,6 +1554,8 @@ class CampaignUtmLinkTests(TestCase):
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Tracked site link")
self.assertContains(response, "campaign-utm.js")
self.assertContains(response, "qrcode.min.js")
self.assertContains(response, "data-utm-qr")
self.assertContains(response, "utm_campaign")
self.assertContains(response, reverse("messaging:campaign_short_link"))
@@ -1573,6 +1575,9 @@ class CampaignUtmLinkTests(TestCase):
self.assertEqual(response.status_code, 200)
self.assertContains(response, "utm_campaign=spring-seller-tips")
self.assertContains(response, "utm_medium=email")
self.assertContains(response, "qrcode.min.js")
self.assertContains(response, "data-utm-qr")
self.assertContains(response, "QR below encodes the same short link")
def test_sms_replaces_existing_short_url(self):
from messaging.services import ensure_campaign_utm_in_text