mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 13:01:50 +02:00
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.
This commit is contained in:
parent
f77c498cb0
commit
faa43ec2e3
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class BaseTestCase(TestCase):
|
||||||
follow_redirects=True,
|
follow_redirects=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
def post_project(self, name, follow_redirects=False):
|
def post_project(self, name, follow_redirects=True):
|
||||||
"""Create a fake project"""
|
"""Create a fake project"""
|
||||||
# create the project
|
# create the project
|
||||||
return self.client.post(
|
return self.client.post(
|
||||||
|
|
Loading…
Reference in a new issue