aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-03-30 21:39:38 +0100
committertom christie tom@tomchristie.com2011-03-30 21:39:38 +0100
commit8845b281fe9aafbc9f9b2a283fafbde9787f4734 (patch)
tree095517eaf23ecdce70030d74b7dcf45ad01f2ddd /examples
parent7566de1cae705aae8238bcf06eee7c7b63ac5364 (diff)
downloaddjango-rest-framework-8845b281fe9aafbc9f9b2a283fafbde9787f4734.tar.bz2
Only use xmlrunner if running under hudson
Diffstat (limited to 'examples')
-rw-r--r--examples/settings.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/settings.py b/examples/settings.py
index d38ab425..1537c5f8 100644
--- a/examples/settings.py
+++ b/examples/settings.py
@@ -106,7 +106,9 @@ INSTALLED_APPS = (
'blogpost',
)
-TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
-TEST_OUTPUT_VERBOSE = True
-TEST_OUTPUT_DESCRIPTIONS = True
-TEST_OUTPUT_DIR = 'xmlrunner' \ No newline at end of file
+import os
+if os.environ.get('HUDSON_URL', None):
+ TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
+ TEST_OUTPUT_VERBOSE = True
+ TEST_OUTPUT_DESCRIPTIONS = True
+ TEST_OUTPUT_DIR = 'xmlrunner' \ No newline at end of file