summaryrefslogtreecommitdiffstats
path: root/patchwork/tests/test_tags.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-06-05 14:32:26 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-06-05 14:37:09 +0800
commit46e4ad955a2a7ba4f32b76a74b350140a1e3d761 (patch)
tree02892290f921f567d1778aa11ee1168e2e7c980a /patchwork/tests/test_tags.py
parent7a39d75859c4ee908573726f0a82df85cdb8b845 (diff)
downloadpatchwork-46e4ad955a2a7ba4f32b76a74b350140a1e3d761.tar.bz2
patchwork-46e4ad955a2a7ba4f32b76a74b350140a1e3d761.tar.xz
patchwork: Explicitly load states fixtures
Apps with migrations will no longer load the initial_data fixtures by default. In order to prepare to add migrations to patchwork, rename the initial_data fixture to default_states (to match the default_tags fixture), and explicitly load them in tests that require them. Also, include this step in the INSTALL document. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'patchwork/tests/test_tags.py')
-rw-r--r--patchwork/tests/test_tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchwork/tests/test_tags.py b/patchwork/tests/test_tags.py
index f1196e7..a1e03f5 100644
--- a/patchwork/tests/test_tags.py
+++ b/patchwork/tests/test_tags.py
@@ -31,7 +31,7 @@ class ExtractTagsTest(TestCase):
email = 'test@exmaple.com'
name_email = 'test name <' + email + '>'
- fixtures = ['default_tags']
+ fixtures = ['default_tags', 'default_states']
def assertTagsEqual(self, str, acks, reviews, tests):
counts = extract_tags(str, Tag.objects.all())
@@ -83,7 +83,7 @@ class PatchTagsTest(TransactionTestCase):
ACK = 1
REVIEW = 2
TEST = 3
- fixtures = ['default_tags']
+ fixtures = ['default_tags', 'default_states']
def assertTagsEqual(self, patch, acks, reviews, tests):
patch = Patch.objects.get(pk=patch.pk)