From 7928a94c7635c73e9577c4039fd623bd5b962207 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Sun, 14 Oct 2012 19:38:31 +0200 Subject: [PATCH] Updated unit tests. see #312 --- modoboa/admin/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modoboa/admin/tests.py b/modoboa/admin/tests.py index 0597714ac..4fb2fcd5e 100644 --- a/modoboa/admin/tests.py +++ b/modoboa/admin/tests.py @@ -38,7 +38,7 @@ class DomainTestCase(TestCase): self.assertEqual(os.path.exists(path), False) class DomainAliasTestCase(ModoTestCase): - fixtures = ["test_content.json"] + fixtures = ["initial_users.json", "test_content.json"] def test_model(self): dom = Domain.objects.get(name="test.com") @@ -67,7 +67,7 @@ class DomainAliasTestCase(ModoTestCase): self.assertEqual(len(dom.domainalias_set.all()), 1) class AccountTestCase(ModoTestCase): - fixtures = ["test_content.json",] + fixtures = ["initial_users.json", "test_content.json",] def test(self): values = dict(username="tester@test.com", first_name="Tester", last_name="Toto", @@ -123,7 +123,7 @@ class AccountTestCase(ModoTestCase): self.assertEqual(self.clt.login(username="user@test.com", password="tutu"), True) class AliasTestCase(ModoTestCase): - fixtures = ["test_content.json"] + fixtures = ["initial_users.json", "test_content.json"] def test_alias(self): user = User.objects.get(username="user@test.com") @@ -180,7 +180,7 @@ class AliasTestCase(ModoTestCase): address="forward", domain__name="test.com") class PermissionsTestCase(ModoTestCase): - fixtures = ["test_content.json"] + fixtures = ["initial_users.json", "test_content.json"] def setUp(self): """