File: //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyo
�
��4]c           @   s=  y d  d l  Z Wn! e k
 r3 d d l m Z n Xd  d l Z d  d l Z d  d l Z d  d l Z d  d l Z y d  d l	 Z	 e
 Z Wn e k
 r� e Z n Xd �  Z
 d �  Z d �  Z d �  Z e r� d  d l Z d �  Z d	 �  Z n  d
 �  Z d �  Z d a d �  Z d
 �  Z d �  Z d �  Z d �  Z d �  Z d S(   i����Ni   (   t   plugin_basec            s9   |  j  d � �  �  f d �  } t j | � t j �  d  S(   Nt
   sqlalchemyc            s�   | j  d d  � � � rD d t j f � f d �  �  Y�  �  | d <n  | j  d d  � � � r� d t j f �  � f d �  �  Y�  �  | d <n  � j |  | � d  S(   Nt   callbackt   CallableActionc              s   e  Z d �  f d  � Z RS(   c            s   �  | | | � d  S(   N(    (   t   selft   parsert	   namespacet   valuest
   option_string(   t	   callback_(    sY   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyt   __call__    s    N(   t   __name__t
   __module__t   NoneR
   (    (   R	   (    sY   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyR      s   t   actiont   zeroarg_callbackc              s2   e  Z e e d �  f d  � Z d � f d � Z RS(   c            sA   t  �  |  � j d | d | d d d t d | d | d | � d  S(	   Nt   option_stringst   destt   nargsi    t   constt   defaultt   requiredt   help(   t   supert   __init__t   True(   R   R   R   R   R   R   (   R   (    sY   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyR   +   s    c            s   �  | | | � d  S(   N(    (   R   R   R   R   R   (   R   (    sY   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyR
   =   s    N(   R   R   t   FalseR
   R   R
   (    (   R   R   (    sY   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyR   *   s   
(   t   popR
   t   argparset   Actiont	   addoption(   t   namet   kw(   t   group(   R   R	   R   sY   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/plugin/pytestplugin.pyt   make_option   s    
"
(   t   getgroupR    t
   setup_optionst   read_config(   R   R"