From 8d9dc6a61f231c538f173b43d61941b57ccc9f37 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Tue, 19 May 2020 19:31:42 +0200 Subject: [PATCH] tests: follow_redirects is now the default for post_project --- ihatemoney/tests/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index 0d1e8104..e5ef9863 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -1641,13 +1641,13 @@ class EmailFailureTestCase(IhatemoneyTestCase): with patch.object( self.app.mail, "send", MagicMock(side_effect=smtplib.SMTPException) ): - resp = self.post_project("raclette", follow_redirects=True) + resp = self.post_project("raclette") # Check that an error message is displayed self.assertIn( "We tried to send you an reminder email, but there was an error", resp.data.decode("utf-8"), ) - # Check that we are redirected anyway + # Check that we were redirected to the home page anyway self.assertIn( 'You probably want to