mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +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
|
TESTING = True
|
||||||
WTF_CSRF_ENABLED = False # Simplifies the tests.
|
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(
|
return self.assertEqual(
|
||||||
expected,
|
expected,
|
||||||
resp.status_code,
|
resp.status_code,
|
||||||
|
|
Loading…
Reference in a new issue