old_contents: from conductor.settings.base import *  # noqa
  
  DEBUG = True
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': ':memory:',
      }
  }
  
  
  class DisableMigrations(object):
      """Disable migrations for apps.
  
      Forcing migrations to run during testing is super annoying
      when the migration hasn't been generated yet.
      Skip migrations for tests.
      """
  
      def __contains__(self, item):
          return True
  
      def __getitem__(self, item):
          return None
  
  
  MIGRATION_MODULES = DisableMigrations()
  
  # factory_boy creates a bunch of junk files for FileFields.
  # Dump them some place that's harmless.
  MEDIA_ROOT = 'media_test'
  
  # Circle CI doesn't seem to like the ManifestStaticFilesStorage
  # and blows up on the first static asset that it encounters.
  # I don't care about testing against the manifested versions.
  STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  
  # RabbitMQ doesn't run in CI so run the tasks in process.
  CELERY_TASK_ALWAYS_EAGER = True
  
new_contents: from conductor.settings.base import *  # noqa
  
  DEBUG = True
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': ':memory:',
      }
  }
  
  
  class DisableMigrations(object):
      """Disable migrations for apps.
  
      Forcing migrations to run during testing is super annoying
      when the migration hasn't been generated yet.
      Skip migrations for tests.
      """
  
      def __contains__(self, item):
          return True
  
      def __getitem__(self, item):
          return None
  
  
  MIGRATION_MODULES = DisableMigrations()
  
  # factory_boy creates a bunch of junk files for FileFields.
  # Dump them some place that's harmless.
  MEDIA_ROOT = '/tmp/conductor/media'
  
  # Circle CI doesn't seem to like the ManifestStaticFilesStorage
  # and blows up on the first static asset that it encounters.
  # I don't care about testing against the manifested versions.
  STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  
  # RabbitMQ doesn't run in CI so run the tasks in process.
  CELERY_TASK_ALWAYS_EAGER = True
  
subject: Use an alternate location for test media.