Statistics
| Branch: | Tag: | Revision:

root / settings.d / 90-tests.conf @ c130b56e

History | View | Annotate | Download (345 Bytes)

1
# -*- coding: utf-8 -*-
2
#
3
# Special unit test mode
4
#########################
5

    
6
# A quick-n-dirty way which sets settings.TEST
7
# if we're running unit tests.
8
import sys
9
TEST = False
10
if len(sys.argv) >= 2:
11
    if os.path.basename(sys.argv[0]) == 'manage.py' and \
12
        (sys.argv[1] == 'test' or sys.argv[1] == 'hudson'):
13
            TEST = True