Do not use progressive when we are not running in terminal

This commit is contained in:
Venelin Stoykov 2015-06-05 03:01:07 +03:00
parent e455768352
commit 458f80050c

View file

@ -34,7 +34,6 @@ INSTALLED_APPS = [
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'-s',
'--with-progressive',
# When the tests are run --with-coverage, these args configure coverage
# reporting (requires coverage to be installed).
@ -45,6 +44,9 @@ NOSE_ARGS = [
'--cover-html-dir=%s' % os.path.join(BASE_PATH, 'cover')
]
if os.getenv('TERM'):
NOSE_ARGS.append('--with-progressive')
DEBUG = True
TEMPLATE_DEBUG = DEBUG
CACHE_BACKEND = 'locmem://'