From 9383b5aa74f147543f6666579c8b58dd68652ad0 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 118e6e48..dc6c4558 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -2296,13 +2296,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