import os
from settings import *

db = os.environ.get('DB')

SECRET_KEY = "This is a test, you don't need secrets"

if db == "sqlite":
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': ':memory:',
        },
    }
elif db == "postgres":
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'inboxen',
            'USER': 'postgres',
        },
    }
else:
    raise NotImplementedError("Please check tests/settings.py for valid DB values")

from __future__ import absolute_import
import os
from settings import *

db = os.environ.get('DB')

SECRET_KEY = "This is a test, you don't need secrets"

if db == "sqlite":
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': ':memory:',
        },
    }
elif db == "postgres":
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'inboxen',
            'USER': 'postgres',
        },
    }
else:
    raise NotImplementedError("Please check tests/settings.py for valid DB values")

Use absolute imports to avoid module naming issues
Use absolute imports to avoid module naming issues
