diff --git a/ihatemoney/tests/common/ihatemoney_testcase.py b/ihatemoney/tests/common/ihatemoney_testcase.py index eda86ab7..b88831cc 100644 --- a/ihatemoney/tests/common/ihatemoney_testcase.py +++ b/ihatemoney/tests/common/ihatemoney_testcase.py @@ -103,7 +103,9 @@ class IhatemoneyTestCase(BaseTestCase): TESTING = True WTF_CSRF_ENABLED = False # Simplifies the tests. - def assertStatus(self, expected, resp, url=""): + def assertStatus(self, expected, resp, url=None): + if url is None: + url = resp.request.path return self.assertEqual( expected, resp.status_code,