From 46e4ad955a2a7ba4f32b76a74b350140a1e3d761 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 5 Jun 2015 14:32:26 +0800 Subject: 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 --- patchwork/tests/test_encodings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'patchwork/tests/test_encodings.py') diff --git a/patchwork/tests/test_encodings.py b/patchwork/tests/test_encodings.py index b9032bb..b639078 100644 --- a/patchwork/tests/test_encodings.py +++ b/patchwork/tests/test_encodings.py @@ -26,6 +26,7 @@ from django.test import TestCase from django.test.client import Client class UTF8PatchViewTest(TestCase): + fixtures = ['default_states'] patch_filename = '0002-utf-8.patch' patch_encoding = 'utf-8' @@ -63,6 +64,7 @@ class UTF8PatchViewTest(TestCase): defaults.project.delete() class UTF8HeaderPatchViewTest(UTF8PatchViewTest): + fixtures = ['default_states'] patch_filename = '0002-utf-8.patch' patch_encoding = 'utf-8' patch_author_name = u'P\xe4tch Author' -- cgit v1.2.3