[PATCH] trivial: Resolve tox isues
Stephen Finucane
stephenfinucane at hotmail.com
Mon Aug 22 02:28:21 AEST 2016
These were introduced with recent commits.
Signed-off-by: Stephen Finucane <stephenfinucane at hotmail.com>
---
patchwork/settings/dev.py | 2 +-
patchwork/tests/test_rest_api.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 1ba46f4..b78a0bf 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -89,5 +89,5 @@ if django.VERSION >= (1, 7):
ENABLE_XMLRPC = True
-if django.VERSION >= (1,7):
+if django.VERSION >= (1, 7):
ENABLE_REST_API = True
diff --git a/patchwork/tests/test_rest_api.py b/patchwork/tests/test_rest_api.py
index 0d8cc3f..fce83fb 100644
--- a/patchwork/tests/test_rest_api.py
+++ b/patchwork/tests/test_rest_api.py
@@ -41,6 +41,7 @@ else:
from django.test import TestCase
APITestCase = TestCase
+
@unittest.skipUnless(settings.ENABLE_REST_API, 'requires ENABLE_REST_API')
class TestProjectAPI(APITestCase):
--
2.7.4
More information about the Patchwork
mailing list