o
    g                     @   s8   d Z ddlmZmZ G dd deZG dd deZdS )a  
This plugin installs a DEPRECATED error class for the :class:`DeprecatedTest`
exception. When :class:`DeprecatedTest` is raised, the exception will be logged
in the deprecated attribute of the result, ``D`` or ``DEPRECATED`` (verbose)
will be output, and the exception will not be counted as an error or failure.
It is enabled by default, but can be turned off by using ``--no-deprecated``.
    )
ErrorClassErrorClassPluginc                   @   s   e Zd ZdZdS )DeprecatedTestz7Raise this exception to mark a test as deprecated.
    N)__name__
__module____qualname____doc__ r	   r	   U/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/nose/plugins/deprecated.pyr      s    r   c                   @   s2   e Zd ZdZdZeedddZdd Zdd	 Z	d
S )
Deprecatedze
    Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled
    by default.
    T
DEPRECATEDF)label	isfailurec                 C   s$   d}|j ddd||ddd dS )	z&Register commandline options.
        NOSE_WITHOUT_DEPRECATEDz--no-deprecated
store_truenoDeprecatedFz6Disable special handling of DeprecatedTest exceptions.)actiondestdefaulthelpN)
add_optionget)selfparserenvenv_optr	   r	   r
   options   s
   
zDeprecated.optionsc                 C   s.   | j sdS || _t|dd}|rd| _dS dS )zConfigure plugin.
        Nr   F)can_configureconfgetattrenabled)r   r   r   disabler	   r	   r
   	configure%   s   
zDeprecated.configureN)
r   r   r   r   r    r   r   
deprecatedr   r"   r	   r	   r	   r
   r      s    	r   N)r   nose.plugins.errorclassr   r   	Exceptionr   r   r	   r	   r	   r
   <module>   s    