mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Add url from request
This commit is contained in:
parent
667b65b9cc
commit
78af70b2c1
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue