Point SHORTENER_BASE_URL at piha.lc / beta.piha.li instead of a separate API host.
CI / test (pull_request) Successful in 21s

Closes #11.
This commit is contained in:
2026-08-30 19:25:03 -05:00
parent 2b3f10e784
commit fe54f4eca1
7 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -1598,7 +1598,7 @@ class CampaignUtmLinkTests(TestCase):
}
with self.settings(
PUBLIC_SITE_URL="https://mkdrealtor.com",
SHORTENER_BASE_URL="https://shortener.aimloperations.com",
SHORTENER_BASE_URL="https://piha.lc",
SHORTENER_API_TOKEN="monica:test-token",
):
with patch(
@@ -1630,7 +1630,7 @@ class CampaignUtmLinkTests(TestCase):
mock.text = '{"detail":"Unauthorized"}'
with self.settings(
PUBLIC_SITE_URL="https://mkdrealtor.com",
SHORTENER_BASE_URL="https://shortener.aimloperations.com",
SHORTENER_BASE_URL="https://piha.lc",
SHORTENER_API_TOKEN="monica:bad",
):
with patch("messaging.shortener.requests.post", return_value=mock):
@@ -1687,7 +1687,7 @@ class CampaignUtmLinkTests(TestCase):
url = reverse("messaging:campaign_short_link")
with self.settings(
PUBLIC_SITE_URL="https://mkdrealtor.com",
SHORTENER_BASE_URL="https://shortener.aimloperations.com",
SHORTENER_BASE_URL="https://piha.lc",
SHORTENER_API_TOKEN="monica:test-token",
):
with patch("messaging.shortener.requests.post", return_value=mock):