Skip to content
Snippets Groups Projects
Commit 24df2d0a authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Update to make sure testing works well

parent c1756c64
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ jobs: ...@@ -14,7 +14,7 @@ jobs:
DATABASE_URL: postgresql://root@localhost/opentech?sslmode=disable DATABASE_URL: postgresql://root@localhost/opentech?sslmode=disable
PGHOST: localhost PGHOST: localhost
PGUSER: root PGUSER: root
DJANGO_SETTINGS_MODULE: opentech.settings.production DJANGO_SETTINGS_MODULE: opentech.settings.test
NPM_CONFIG_PRODUCTION: false NPM_CONFIG_PRODUCTION: false
SEND_MESSAGES: false SEND_MESSAGES: false
......
...@@ -19,7 +19,7 @@ addons: ...@@ -19,7 +19,7 @@ addons:
env: env:
global: global:
- DJANGO_SETTINGS_MODULE=opentech.settings.production - DJANGO_SETTINGS_MODULE=opentech.settings.test
- DATABASE_URL=postgres://postgres@localhost/test_db - DATABASE_URL=postgres://postgres@localhost/test_db
before_script: before_script:
......
import os import os
# import raven
import django_heroku import django_heroku
from .base import * # noqa from .base import * # noqa
......
from .production import * # noqa
# Should only include explicit testing settings
SECRET_KEY = 'NOT A SECRET'
# Need this to ensure white noise doesn't kill the speed of testing
# http://whitenoise.evans.io/en/latest/django.html#whitenoise-makes-my-tests-run-slow
WHITENOISE_AUTOREFRESH = True
...@@ -31,7 +31,7 @@ django_select2==6.0.1 ...@@ -31,7 +31,7 @@ django_select2==6.0.1
dj-database-url==0.5.0 dj-database-url==0.5.0
django-basic-auth-ip-whitelist==0.2.1 django-basic-auth-ip-whitelist==0.2.1
django-heroku==0.3.1 django-heroku==0.3.1
whitenoise==3.3.1 whitenoise==4.0
gunicorn==19.9.0 gunicorn==19.9.0
ConcurrentLogHandler==0.9.1 ConcurrentLogHandler==0.9.1
raven==6.9.0 raven==6.9.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment