a
    ñ»j  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )zþUse the AllModules plugin by passing ``--all-modules`` or setting the
NOSE_ALL_MODULES environment variable to enable collection and execution of
tests in all python modules. Normal nose behavior is to look for tests only in
modules that match testMatch.é    )ÚPluginc                   @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	Ú
AllModulesz&Collect tests from all python modules.c              	   C   s6   d}|j dd| j| |¡d| jj|  ¡ |f d� dS )zRegister commandline options.ZNOSE_ALL_MODULESz--all-modulesÚ
store_truezEnable plugin %s: %s [%s])ÚactionÚdestÚdefaultÚhelpN)Ú
add_optionZ	enableOptÚgetÚ	__class__Ú__name__r   )ÚselfÚparserÚenvZenv_opt© r   ú=E:\soccer\ml_env\Lib\site-packages\nose/plugins/allmodules.pyÚoptions
   s    ÿýzAllModules.optionsc                 C   s   |  d¡rdS dS )z5Override to return True for all files ending with .pyz.pyTN)Úendswith)r   Úfiler   r   r   ÚwantFile   s    
zAllModules.wantFilec                 C   s   dS )z$Override return True for all modulesTr   )r   Úmoduler   r   r   Ú
wantModule   s    zAllModules.wantModuleN)r   Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s   
r   N)r   Znose.plugins.baser   r   r   r   r   r   Ú<module>   s   