def get_db_config(self):
        from django.db.backends.creation import TEST_DATABASE_PREFIX
        db_config = settings.DATABASES[self.django_dbname].copy()
        if settings.UNIT_TESTING:
            db_config['NAME'] = TEST_DATABASE_PREFIX + db_config['NAME']
        return db_config
dataset/ETHPy150Open dimagi/commcare-hq/corehq/sql_db/config.py/DbShard.get_db_config/original