Commit 845b4910 authored by Raphaël Hertzog's avatar Raphaël Hertzog

test: run tests with PostgreSQL if USE_PG environment variable is set

parent f6756044
......@@ -2,13 +2,18 @@
Defaults to unix socket with user auth.
import os
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'distro-tracker',
'USER': 'distro-tracker',
'USER': os.getlogin(),
'HOST': '',
'PORT': '',
'TEST': {
'NAME': 'distro-tracker-test',
"""Appropriate settings to run the test suite."""
import os
from . import defaults
from .development import * # noqa
if 'USE_PG' in os.environ:
from .db_postgresql import DATABASES # noqa
# Don't use bcrypt to run tests (speed gain)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment