Skip to content

Commit

Permalink
This always succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jul 10, 2024
1 parent fd33868 commit 392285b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions accounts/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def test_registration(self):

self.assertEqual(len(mail.outbox), 1)
body = mail.outbox[0].body
url = unquote(next(line for line in body.splitlines() if "testserver" in line))
url = unquote(
next(line for line in body.splitlines() if "testserver" in line)
) # pragma: no branch

self.assertTrue(
"http://testserver/accounts/register/dGVzdEBleGFtcGxlLmNvbTo:" in url
Expand Down Expand Up @@ -99,7 +101,9 @@ def test_existing_user(self):

self.assertEqual(len(mail.outbox), 1)
body = mail.outbox[0].body
url = unquote(next(line for line in body.splitlines() if "testserver" in line))
url = unquote(
next(line for line in body.splitlines() if "testserver" in line)
) # pragma: no branch

self.assertTrue(
re.match(
Expand Down

0 comments on commit 392285b

Please sign in to comment.