# -*- coding: utf-8 -*-
import os

from .base import Base as Settings


class Testing(Settings):
    # Database Configuration.
    # ------------------------------------------------------------------
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'test-base',
        }
    }

    # django-haystack.
    # ------------------------------------------------------------------
    HAYSTACK_CONNECTIONS = {
        'default': {
            'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
        },
    }

# -*- coding: utf-8 -*-
import os

from .base import Base as Settings


class Testing(Settings):
    # Database Configuration.
    # ------------------------------------------------------------------
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'test-base',
        }
    }

    # django-celery.
    # ------------------------------------------------------------------
    Settings.INSTALLED_APPS += ['kombu.transport.django', 'djcelery',]
    BROKER_URL = 'django://'

    # django-haystack.
    # ------------------------------------------------------------------
    HAYSTACK_CONNECTIONS = {
        'default': {
            'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
        },
    }

Fix the Celery configuration under test settings.
Fix the Celery configuration under test settings.
