old_contents: """
  Test settings
  
  - Used to run tests fast on the continuous integration server and locally
  """
  
  from .base import *  # noqa
  
  # DEBUG
  # ------------------------------------------------------------------------------
  DEBUG = True
  TEMPLATES[0]["OPTIONS"]["debug"] = False
  
  # SECRET CONFIGURATION
  # ------------------------------------------------------------------------------
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  # Note: This key only used for development and testing.
  SECRET_KEY = env("DJANGO_SECRET_KEY", default="CHANGEME!!!")
  
  # Mail settings
  # ------------------------------------------------------------------------------
  EMAIL_HOST = "localhost"
  EMAIL_PORT = 1025
  
  # In-memory email backend stores messages in django.core.mail.outbox
  # for unit testing purposes
  EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
  
  # CACHING
  # ------------------------------------------------------------------------------
  # Speed advantages of in-memory caching without having to run Memcached
  CACHES = {
      "default": {
          "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
          "LOCATION": "",
      }
  }
  
  # TESTING
  # ------------------------------------------------------------------------------
  TEST_RUNNER = "django.test.runner.DiscoverRunner"
  
  
  # PASSWORD HASHING
  # ------------------------------------------------------------------------------
  # Use fast password hasher so tests run faster
  PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
  
  # TEMPLATE LOADERS
  # ------------------------------------------------------------------------------
  # Keep templates in memory so tests run faster
  TEMPLATES[0]["OPTIONS"]["loaders"] = [
      [
          "django.template.loaders.cached.Loader",
          [
              "django.template.loaders.filesystem.Loader",
              "django.template.loaders.app_directories.Loader",
          ],
      ]
  ]
  TEMPLATES[0]["OPTIONS"]["debug"] = True
  
new_contents: """
  Test settings
  
  - Used to run tests fast on the continuous integration server and locally
  """
  
  from .base import *  # noqa
  
  # DEBUG
  # ------------------------------------------------------------------------------
  DEBUG = True
  TEMPLATES[0]["OPTIONS"]["debug"] = False
  
  # SECRET CONFIGURATION
  # ------------------------------------------------------------------------------
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  # Note: This key only used for development and testing.
  SECRET_KEY = env("DJANGO_SECRET_KEY", default="CHANGEME!!!")
  
  # Mail settings
  # ------------------------------------------------------------------------------
  EMAIL_HOST = "localhost"
  EMAIL_PORT = 1025
  
  # In-memory email backend stores messages in django.core.mail.outbox
  # for unit testing purposes
  EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
  
  # CACHING
  # ------------------------------------------------------------------------------
  # Speed advantages of in-memory caching without having to run Memcached
  CACHES = {
      "default": {
          "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
          "LOCATION": "",
      }
  }
  
  # TESTING
  # ------------------------------------------------------------------------------
  TEST_RUNNER = "django.test.runner.DiscoverRunner"
  
  
  # PASSWORD HASHING
  # ------------------------------------------------------------------------------
  # Use fast password hasher so tests run faster
  PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
  
  # TEMPLATE LOADERS
  # ------------------------------------------------------------------------------
  # Keep templates in memory so tests run faster
  TEMPLATES[0]["OPTIONS"]["loaders"] = [
      [
          "django.template.loaders.cached.Loader",
          [
              "django.template.loaders.filesystem.Loader",
              "django.template.loaders.app_directories.Loader",
          ],
      ]
  ]
  TEMPLATES[0]["OPTIONS"]["debug"] = True
  
  DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "testdb"}}
  
subject: Test using sqlite db