Workaround for Travis

Travis doesn't support cpu affinity in their virtuals so I've added a setting TESTING that will bypass the actual affinity setting, but will still cover most of the code.
Might be useful for future workarounds.
This commit is contained in:
Ilan
2015-07-15 22:17:13 +02:00
parent 464255fa88
commit a5580c75a1
3 changed files with 9 additions and 3 deletions
+3
View File
@@ -67,6 +67,9 @@ class Conf(object):
STOPPED = _('Stopped')
STOPPING = _('Stopping')
# to manage workarounds during testing
TESTING = conf.get('testings', False)
# logger
logger = logging.getLogger('django-q')