@@ -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,
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@intel.com> --- patchwork/tests/test_xmlrpc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)