a
    Cøga  ã                   @   sR   d Z ddlZdd„ Zdeƒ iZdZg d¢Zg d¢Zd	Zd
g ddg d¢idœgZdS )z'
Django settings for testing treebeard
é    Nc               	   C   sÈ   t j dd¡} | dkr dddœS | dkrbddt j d	d¡t j d
d¡t j dd¡t j dd¡dœS | dkr¤ddt j dd¡t j d
d¡t j dd¡t j dd¡dœS | dkrÄddddddddidœS dS )z·
    Configures database according to the DATABASE_ENGINE environment
    variable. Defaults to SQlite.

    This method is used to run tests against different database backends.
    ZDATABASE_ENGINEZsqlitezdjango.db.backends.sqlite3z:memory:)ÚENGINEÚNAMEZpsqlzdjango.db.backends.postgresqlÚ	treebeardZDATABASE_USER_POSTGRESZDATABASE_PASSWORDÚ ZDATABASE_HOSTÚ	localhostZDATABASE_PORT_POSTGRES)r   r   ÚUSERÚPASSWORDÚHOSTÚPORTZmysqlzdjango.db.backends.mysqlZDATABASE_USER_MYSQLZDATABASE_PORT_MYSQLZmssqlZmasterÚsazPassword12!z(local)\SQL2019ZdriverzSQL Server Native Client 11.0)r   r   r   r   r	   r
   ÚOPTIONSN)ÚosÚenvironÚget)Zdatabase_engine© r   úW/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/treebeard/tests/settings.pyÚget_db_conf   s>    þúúÿùr   ÚdefaultZ	7r33b34rd)zdjango.contrib.authzdjango.contrib.contenttypeszdjango.contrib.sessionszdjango.contrib.adminzdjango.contrib.messagesr   ztreebeard.tests)z4django.contrib.sessions.middleware.SessionMiddlewarez7django.contrib.auth.middleware.AuthenticationMiddlewarez4django.contrib.messages.middleware.MessageMiddlewareztreebeard.tests.urlsz/django.template.backends.django.DjangoTemplatesTZcontext_processors)z+django.contrib.auth.context_processors.authz(django.template.context_processors.debugz'django.template.context_processors.i18nz(django.template.context_processors.mediaz)django.template.context_processors.staticz%django.template.context_processors.tzz*django.template.context_processors.requestz3django.contrib.messages.context_processors.messages)ZBACKENDZDIRSZAPP_DIRSr   )	Ú__doc__r   r   Z	DATABASESZ
SECRET_KEYZINSTALLED_APPSZ
MIDDLEWAREZROOT_URLCONFZ	TEMPLATESr   r   r   r   Ú<module>   s   -

ÿüÿ