from varify.conf.settings import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'varifydb',
    },
}

INSTALLED_APPS = (
    'tests',
    'tests.cases.assessments',
    'tests.cases.south_tests',
    'tests.cases.geneset_form',
    'tests.cases.sample_load_process',
    'tests.cases.commands',

    'varify',

    'varify.raw',
    'varify.raw.sources',

    'varify.assessments',
    'varify.genome',
    'varify.phenotypes',
    'varify.genes',
    'varify.variants',
    'varify.samples',
    'varify.literature',
    'varify.pipeline',

    'varify.support',

    'south',
    'guardian',
    'django_rq',
    'sts',
    'reversion',

    'serrano',
    'avocado',
    'avocado.export',
    'modeltree',

    # built-in Django apps
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.humanize',
    'django.contrib.markup',
    'django.contrib.messages',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.staticfiles',
)

TEST_RUNNER = 'tests.runner.ProfilingTestRunner'
TEST_PROFILE = 'unittest.profile'

RQ_QUEUES = {
    'default': {
        'HOST': 'localhost',
        'PORT': 6379,
        'DB': 0,
    },
    'samples': {
        'HOST': 'localhost',
        'PORT': 6379,
        'DB': 0,
    },
    'variants': {
        'HOST': 'localhost',
        'PORT': 6379,
        'DB': 0,
    },
    'effects': {
        'HOST': 'localhost',
        'PORT': 6379,
        'DB': 0,
    },
    'results': {
        'HOST': 'localhost',
        'PORT': 6379,
        'DB': 0,
    },
}


LOGGING = {
    'version': 1,
    'disable_existing_loggers': True,
    'formatters': {
        'rq_console': {
            'format': '%(asctime)s %(message)s',
            'datefmt': '%H:%M:%S',
        },
    },
    'handlers': {
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler'
        },
        'rq_console': {
            'level': 'DEBUG',
            'class': 'rq.utils.ColorizingStreamHandler',
            'formatter': 'rq_console',
            'exclude': ['%(asctime)s'],
        }
    },
    'loggers': {
        'varify': {
            'handlers': ['console'],
            'level': 'INFO',
            'propagate': True,
        },
        'tests': {
            'handlers': ['console'],
            'level': 'INFO',
            'propagate': True,
        },
        'rq.worker': {
            'handlers': ['rq_console'],
            'level': 'DEBUG',
        },
    }
}

SOUTH_TESTS_MIGRATE = False

SECRET_KEY = 'acb123'

@@ -194,39 +194,8 @@
 s',%0A
-    'tests.cases.assessments',%0A
     

Disable assessment tests