From 392285b2db02f276fa01bec5f1cde80222bea946 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Wed, 10 Jul 2024 14:56:56 +0200 Subject: [PATCH] This always succeeds --- accounts/test_registration.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/accounts/test_registration.py b/accounts/test_registration.py index cc882f0..d315654 100644 --- a/accounts/test_registration.py +++ b/accounts/test_registration.py @@ -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 @@ -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(