Permalink
Browse files

Merge pull request #11 from peterbe/patch-1

Makes it possible to switch off FORCE_DB by setting to 'false'.
  • Loading branch information...
2 parents 2e68773 + c8a6fc7 commit adabce61c6b2b65e8b4be0dcdf13a6a725875352 @peterbe peterbe committed Nov 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test_utils/runner.py
View
2 test_utils/runner.py
@@ -84,7 +84,7 @@ def should_create_database(connection):
except StandardError: # TODO: Be more discerning but still DB
# agnostic.
return True
- return not not os.getenv('FORCE_DB')
+ return os.getenv('FORCE_DB', 'false').lower() != 'false'
def sql_reset_sequences(connection):
"""Return a list of SQL statements needed to reset all sequences

0 comments on commit adabce6

Please sign in to comment.