from .base import *  # noqa


SECRET_KEY = 'test'


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'test_db.sqlite3'),
    }
}

from .base import *  # noqa


SECRET_KEY = 'test'


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'test_db.sqlite3'),
    }
}


WAGTAILSEARCH_BACKENDS = {
    'default': {
        'BACKEND': 'wagtail.wagtailsearch.backends.db',
    }
}

Use db search backend instead of elastic in tests
Use db search backend instead of elastic in tests

  from .base import *  # noqa
  
  
  SECRET_KEY = 'test'
  
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'test_db.sqlite3'),
      }
  }
  
+ 
+ WAGTAILSEARCH_BACKENDS = {
+     'default': {
+         'BACKEND': 'wagtail.wagtailsearch.backends.db',
+     }
+ }
+ 
Use db search backend instead of elastic in tests
## Code Before:
from .base import *  # noqa


SECRET_KEY = 'test'


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'test_db.sqlite3'),
    }
}

## Instruction:
Use db search backend instead of elastic in tests
## Code After:
from .base import *  # noqa


SECRET_KEY = 'test'


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'test_db.sqlite3'),
    }
}


WAGTAILSEARCH_BACKENDS = {
    'default': {
        'BACKEND': 'wagtail.wagtailsearch.backends.db',
    }
}
