def get_databases():
    try:
        from django.db import connections
    except __HOLE__:
        from django.conf import settings
        from django.db import connection

        if settings.TEST_DATABASE_NAME:
            connection['TEST_NAME'] = settings.TEST_DATABASE_NAME

        connections = {
            DEFAULT_DB_ALIAS : connection
        }

    return connections
dataset/ETHPy150Open Almad/django-sane-testing/djangosanetesting/utils.py/get_databases