Permalink
Browse files

make it possible to set 'FORCE_DB=\'yes please\'' or 'FORCE_DB=0' and…

… it making sense
  • Loading branch information...
1 parent adabce6 commit eb0e44407730dc97ecba8082602098dc4379ff6e @peterbe peterbe committed Dec 15, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 test_utils/runner.py
View
3 test_utils/runner.py
@@ -84,7 +84,8 @@ def should_create_database(connection):
except StandardError: # TODO: Be more discerning but still DB
# agnostic.
return True
- return os.getenv('FORCE_DB', 'false').lower() != 'false'
+ return (os.getenv('FORCE_DB', 'false').lower()
+ not in ('false', '0', ''))
def sql_reset_sequences(connection):
"""Return a list of SQL statements needed to reset all sequences

0 comments on commit eb0e444

Please sign in to comment.