diff options
| author | tom christie tom@tomchristie.com | 2011-03-30 21:39:38 +0100 | 
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-03-30 21:39:38 +0100 | 
| commit | 8845b281fe9aafbc9f9b2a283fafbde9787f4734 (patch) | |
| tree | 095517eaf23ecdce70030d74b7dcf45ad01f2ddd /examples | |
| parent | 7566de1cae705aae8238bcf06eee7c7b63ac5364 (diff) | |
| download | django-rest-framework-8845b281fe9aafbc9f9b2a283fafbde9787f4734.tar.bz2 | |
Only use xmlrunner if running under hudson
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/settings.py | 10 | 
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  | 
