관리-도구
편집 파일: plugin_base.cpython-37.pyc
B ��4]�L � @ s� d Z ddlmZ ddlZddlZejdkZer8ddlZnddlZda da dadada dadZdadadadadae� ae� adadd� Zdd� Zd d � Zdd� Zd d� Zdd� Zdd� Zda dd� Z!dd� Z"dd� Z#dd� Z$dd� Z%dd� Z&dd � Z'g Z(g Z)d!d"� Z*d#d$� Z+e*d%d&� �Z,e*d'd(� �Z-e*d)d*� �Z.e+d+d,� �Z/e+d-d.� �Z0e+d/d0� �Z1d1d2� Z2e+d3d4� �Z3e+d5d6� �Z4e+d7d8� �Z5e+d9d:� �Z6d;d<� Z7d=d>� Z8d?d@� Z9dAdB� Z:dCdD� Z;dEdF� Z<dGdH� Z=dIdJ� Z>dKdL� Z?dMdN� Z@dVdPdQ�ZAdRdS� ZBdTdU� ZCdS )Wz�Testing extensions. this module is designed to work as a testing-framework-agnostic library, created so that multiple test frameworks can be supported at once (mostly so that we can migrate to new ones). The current target is py.test. � )�absolute_importN)� r c C s8 | dddt dd� | dddt dd� | dd dd dd� | d dtdd� | dd dddd� | ddddd� | ddddd� | ddddd� | dddd � | d!dd"d#d� | d$dd%d&d'� | d(dd)d*d+d,� | d-ddtd.d� | d/dd0d*d1d,� | d2dtdd3d4� | d5dtdd6d4� | d7dd8d*d9d,� | d:dd;d*d<d,� d S )=Nz --log-info�callback�stringz,turn on info logging for <LOG> (multiple OK))�action�typer �helpz--log-debugz-turn on debug logging for <LOG> (multiple OK)z--db�append�dbzBUse prefab database uri. Multiple OK, first one is run by default.)r r �destr z--dbszList available prefab dbs)r Zzeroarg_callbackr z--dburi�dburiz8Database uri. Multiple OK, first one is run by default.z--dropfirst� store_true� dropfirstz,Drop all tables in the target database first)r r r z--backend-only�backend_onlyz<Run only tests marked with __backend__ or __sparse_backend__z --nomemory�nomemoryz Don't run memory profiling testsz--postgresql-templatedbz^name of template database to use for PostgreSQL CREATE DATABASE (defaults to current database))r r z--low-connections�low_connectionsz>Use a low number of distinct connections - i.e. for Oracle TNSz--write-idents�write_identszCwrite out generated follower idents to <file>, when -n<num> is used)r r r z--reversetop� reversetopFzTUse a random-ordering set implementation in the ORM (helps reveal dependency issues))r r �defaultr z--requirementsz3requirements class for testing, overrides setup.cfgz--with-cdecimal�cdecimalzDMonkeypatch the cdecimal library into Python 'decimal' for all testsz --include-tagzInclude tests with tag <tag>)r r r r z --exclude-tagzExclude tests with tag <tag>z--write-profilesZwrite_profilesz$Write/update failing profiling data.z--force-write-profilesZforce_write_profilesz,Unconditionally write/update profiling data.)�_log� _list_dbs�_requirements_opt�_include_tag�_exclude_tag)Zmake_option� r �X/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/testing/plugin/plugin_base.py� setup_options2 s� r c C s ddl m} | |_dS )z�Configure required state for a follower. This invokes in the parent process and typically includes database creation. r )� provisionN)�sqlalchemy.testingr �FOLLOWER_IDENT)Zfollower_identr r r r �configure_follower� s r! c C s t td�| d<