Skip to content

Commit

Permalink
Update SMS template test; stringify furl before returning JSON (#2132)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored Oct 29, 2024
1 parent b2136d2 commit 5001862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion funnel/views/api/shortlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ def create_shortlink(
return {
'status': 'ok',
'shortlink': app_url_for(shortlinkapp, 'link', name=sl.name, _external=True),
'url': url,
'url': str(url),
}, status_code
2 changes: 1 addition & 1 deletion tests/unit/transports/sms_template_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,5 @@ def test_web_otp_template() -> None:
t = sms.WebOtpTemplate(otp='1234')
assert str(t) == (
'OTP is 1234 for Hasgeek. If you did not request this, report misuse at '
'https://has.gy/not-my-otp\n\n@hasgeek.com #1234'
'https://hasgeek.com/account/not-my-otp\n\n@hasgeek.com #1234'
)

0 comments on commit 5001862

Please sign in to comment.