aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/tests/tests.py
diff options
context:
space:
mode:
authorDaniel Atwood <59884378+indatwood@users.noreply.github.com>2020-05-24 11:45:34 +0200
committerGitHub <noreply@github.com>2020-05-24 11:45:34 +0200
commit0fd2958865319983b0c7efed66f702aefdd6184b (patch)
tree9d9d9dac99dfd4a7c2cd3624d98f9acb9082d676 /ihatemoney/tests/tests.py
parent82393a110aa1d240ea8137a96efb66bad65581ac (diff)
downloadihatemoney-mirror-0fd2958865319983b0c7efed66f702aefdd6184b.zip
ihatemoney-mirror-0fd2958865319983b0c7efed66f702aefdd6184b.tar.gz
ihatemoney-mirror-0fd2958865319983b0c7efed66f702aefdd6184b.tar.bz2
Populate the demo project with defaults. (#616)
Diffstat (limited to 'ihatemoney/tests/tests.py')
-rw-r--r--ihatemoney/tests/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py
index dc6c455..3ca238f 100644
--- a/ihatemoney/tests/tests.py
+++ b/ihatemoney/tests/tests.py
@@ -518,7 +518,11 @@ class BudgetTestCase(IhatemoneyTestCase):
# test that a demo project is created if none is defined
self.assertEqual([], models.Project.query.all())
self.client.get("/demo")
- self.assertTrue(models.Project.query.get("demo") is not None)
+ demo = models.Project.query.get("demo")
+ self.assertTrue(demo is not None)
+
+ self.assertEqual(["Amina", "Georg", "Alice"], [m.name for m in demo.members])
+ self.assertEqual(demo.get_bills().count(), 3)
def test_deactivated_demo(self):
self.app.config["ACTIVATE_DEMO_PROJECT"] = False