Skip to content

Commit b91234b

Browse files
committed
Update test, passing user email through urllib.parse.quote()
1 parent 2fa8ee6 commit b91234b

File tree

1 file changed

+2
-1
lines changed
  • src/thunderbird_accounts/authentication

1 file changed

+2
-1
lines changed

src/thunderbird_accounts/authentication/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from django.core.exceptions import PermissionDenied
88
from django.forms import model_to_dict
99
from django.http import HttpRequest
10+
from urllib.parse import quote
1011
from django.test import Client as RequestClient, override_settings
1112
from django.test import TestCase
1213
from django.utils.translation import gettext_lazy as _
@@ -894,7 +895,7 @@ def test_not_on_allowed_list(self, mock_import_user: MagicMock):
894895
mock_user_email = 'hello3@example.com'
895896

896897
# Redirect should include mock user's email in querystring
897-
waitlist_url = f'{settings.TB_PRO_WAIT_LIST_URL}?email={mock_user_email}'
898+
waitlist_url = f'{settings.TB_PRO_WAIT_LIST_URL}?email={quote(mock_user_email)}'
898899

899900
response = self.client.post(
900901
'/users/sign-up/',

0 commit comments

Comments
 (0)