Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow running with postgres

  • Loading branch information...
commit b8cb7d924e887cbff2bd09813d6971034b6a1892 1 parent 7ef7b02
@coleifer authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 runtests.py
View
13 runtests.py
@@ -4,11 +4,18 @@
from django.conf import settings
+if len(sys.argv) > 1 and 'postgres' in sys.argv:
+ sys.argv.remove('postgres')
+ db_engine = 'postgresql_psycopg2'
+ db_name = 'test_main'
+else:
+ db_engine = 'sqlite3'
+ db_name = ''
+
if not settings.configured:
settings.configure(
- DATABASE_ENGINE = 'sqlite3',
- # DATABASE_ENGINE = 'postgresql_psycopg2',
- # DATABASE_NAME = 'test_main',
+ DATABASE_ENGINE = db_engine,
+ DATABASE_NAME = db_name,
INSTALLED_APPS = [
'django.contrib.contenttypes',
'generic_aggregation.generic_aggregation_tests',
Please sign in to comment.
Something went wrong with that request. Please try again.