]> git.ozlabs.org Git - patchwork/blobdiff - patchwork/tests/test_notifications.py
patchwork: Explicitly load states fixtures
[patchwork] / patchwork / tests / test_notifications.py
index ed351409175293d530f91d9b5d5c9f4620e30b28..c46af612bbde09611df8c4c49d12d00ae93d24ab 100644 (file)
@@ -28,6 +28,8 @@ from patchwork.tests.utils import defaults, create_maintainer
 from patchwork.utils import send_notifications
 
 class PatchNotificationModelTest(TestCase):
+    fixtures = ['default_states']
+
     """Tests for the creation & update of the PatchChangeNotification model"""
 
     def setUp(self):
@@ -120,6 +122,7 @@ class PatchNotificationModelTest(TestCase):
         self.assertEqual(PatchChangeNotification.objects.count(), 0)
 
 class PatchNotificationEmailTest(TestCase):
+    fixtures = ['default_states']
 
     def setUp(self):
         self.project = defaults.project