From 381ea8fe0cd443c039c7a7b6a8dc122657c2db43 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Tue, 19 May 2020 19:22:36 +0200 Subject: [PATCH] tests: Follow redirections by default for post_project() No user of post_project() was using its return value, so it was not useful to follow redirections up to now. However, for new and future usages of post_project(), it's clearer to follow redirections by default. Tests can still disable redirects if they need to test something special. --- ihatemoney/tests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index f900bd7e..0d1e8104 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -57,7 +57,7 @@ class BaseTestCase(TestCase): return self.client.post('/authenticate', data=dict( id=project, password=password), follow_redirects=True) - def post_project(self, name, follow_redirects=False): + def post_project(self, name, follow_redirects=True): """Create a fake project""" # create the project return self.client.post("/create", data={