[PATCH v2 01/16] Add missing explicit state fixture load

Stephen Finucane stephen.finucane at intel.com
Sat Aug 22 00:32:05 AEST 2015


The 'patchwork: Explicitly load states fixtures' change introduced
explicit state loading into many of the tests, but missed one.
Correct this oversight.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/tests/test_xmlrpc.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/patchwork/tests/test_xmlrpc.py b/patchwork/tests/test_xmlrpc.py
index 2b459b2..b7c629e 100644
--- a/patchwork/tests/test_xmlrpc.py
+++ b/patchwork/tests/test_xmlrpc.py
@@ -28,13 +28,14 @@ from patchwork.tests.utils import defaults
 @unittest.skipUnless(settings.ENABLE_XMLRPC,
         "requires xmlrpc interface (use the ENABLE_XMLRPC setting)")
 class XMLRPCTest(LiveServerTestCase):
+    fixtures = ['default_states']
 
     def setUp(self):
         settings.STATIC_URL = '/'
-        self.url = (self.live_server_url + 
+        self.url = (self.live_server_url +
                     reverse('patchwork.views.xmlrpc.xmlrpc'))
         self.rpc = xmlrpclib.Server(self.url)
-        
+
     def testGetRedirect(self):
         response = self.client.get(self.url)
         self.assertRedirects(response,
-- 
2.0.0



More information about the Patchwork mailing list