mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
add test case
This commit is contained in:
parent
0b4b68aad7
commit
86b8e9135a
1 changed files with 6 additions and 0 deletions
|
@ -1434,6 +1434,12 @@ class APITestCase(IhatemoneyTestCase):
|
|||
|
||||
class ServerTestCase(IhatemoneyTestCase):
|
||||
|
||||
def test_homepage(self):
|
||||
# See https://github.com/spiral-project/ihatemoney/pull/358
|
||||
self.app.config['APPLICATION_ROOT'] = '/'
|
||||
req = self.client.get("/")
|
||||
self.assertStatus(200, req)
|
||||
|
||||
def test_unprefixed(self):
|
||||
self.app.config['APPLICATION_ROOT'] = '/'
|
||||
req = self.client.get("/foo/")
|
||||
|
|
Loading…
Reference in a new issue