Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
2b4e9787
Commit
2b4e9787
authored
Apr 14, 2011
by
Vangelis Koukis
Browse files
Set TEST if running in Hudson's environment
parent
8efa7f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings.py.dist
View file @
2b4e9787
...
...
@@ -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 =
Fals
e
if
os.path.basename(sys.argv[0])
== 'manage.py' and \
(sys.argv[1] == 'test' or sys.argv[1] == 'hudson')
:
TEST =
Tru
e
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment