Commit 2b4e9787 authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Set TEST if running in Hudson's environment

parent 8efa7f54
......@@ -10,10 +10,11 @@ TEMPLATE_DEBUG = DEBUG
# A quick-n-dirty way to know if we're running unit tests
import sys
TEST = False
if len(sys.argv) >= 2:
TEST = ('manage.py', 'test') == (os.path.basename(sys.argv[0]), sys.argv[1])
else:
TEST = False
if os.path.basename(sys.argv[0]) == 'manage.py' and \
(sys.argv[1] == 'test' or sys.argv[1] == 'hudson'):
TEST = True
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment