%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/nose/plugins/ |
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/nose/plugins/base.pyo |
� k�6Sc @ sx d d l Z d d l Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ d S( i����N( t OptionConflictError( t warn( t tolistt Pluginc B sq e Z d Z e Z e Z d Z d Z d Z d � Z d d � Z d d � Z d � Z d � Z d � Z d � Z RS( s� Base class for nose plugins. It's recommended but not *necessary* to subclass this class to create a plugin, but all plugins *must* implement `options(self, parser, env)` and `configure(self, options, conf)`, and must have the attributes `enabled`, `name` and `score`. The `name` attribute may contain hyphens ('-'). Plugins should not be enabled by default. Subclassing Plugin (and calling the superclass methods in __init__, configure, and options, if you override them) will give your plugin some friendly default behavior: * A --with-$name option will be added to the command line interface to enable the plugin, and a corresponding environment variable will be used as the default value. The plugin class's docstring will be used as the help for this option. * The plugin will not be enabled unless this option is selected by the user. id c C sY | j d k r'