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',
        },
    }

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.

  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.
## Code Before:
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',
        },
    }

## Instruction:
Fix the Celery configuration under test settings.
## Code After:
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',
        },
    }
