Did I find the right examples for you? yes no

All Samples(118)  |  Call(118)  |  Derive(0)  |  Import(0)
Configure the plugin and system, based on selected options.

The base plugin class sets the plugin to enabled if the enable option
for the plugin (self.enableOpt) is true.

src/o/p/openstack.nose_plugin-0.11/openstack/nose_plugin.py   openstack.nose_plugin(Download)
    def configure(self, options, conf):
        plugins.Plugin.configure(self, options, conf)
        self.conf = conf
        self.red = float(options.openstack_red)
        self.yellow = float(options.openstack_yellow)

src/o/p/openstack-nose-HEAD/openstack/nose_plugin.py   openstack-nose(Download)
    def configure(self, options, conf):
        plugins.Plugin.configure(self, options, conf)
        self.conf = conf
        self.red = float(options.openstack_red)
        self.yellow = float(options.openstack_yellow)

src/s/p/spec-0.11.1/spec/plugin.py   spec(Download)
    def configure(self, options, config):
        # Configure
        Plugin.configure(self, options, config)
        # Set options
        if options.enable_plugin_specplugin:

src/p/i/pinocchio-0.4.1/pinocchio/spec.py   pinocchio(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
 
        if options.enable_plugin_spec:
            options.verbosity = max(options.verbosity, 2)

src/i/n/infi.memuse-0.0.8/src/infi/memuse/nose/__init__.py   infi.memuse(Download)
    def configure(self, options, conf):
        nose.plugins.Plugin.configure(self, options, conf)
        if options.memuseLeftover:
            self.allowed_leftover = options.memuseLeftover
 

src/p/i/pinocchio-HEAD/pinocchio/spec.py   pinocchio(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
 
        if options.enable_plugin_spec:
            options.verbosity = max(options.verbosity, 2)

src/t/w/twodeg.nosedjango-0.1dev/twodeg/nosedjango/nosedjango.py   twodeg.nosedjango(Download)
            options.doctestExtension = ['txt']
 
        Plugin.configure(self, options, conf)
 
        if options.django_settings and self.env is not None:

src/n/o/nose-json-0.2.4/nose_json/plugin.py   nose-json(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.config = config
        if not self.enabled:
            return

src/n/o/nose-rapido-0.0.2/noserapido/plugin.py   nose-rapido(Download)
    def configure(self, options, config):
        Plugin.configure(self, options, config)
        self.rapido_blue = options.rapido_blue
 
    def finalize(self, result):

src/r/a/randomize-0.9/randomize/plugin.py   randomize(Download)
    def configure(self, options, conf):
        """
        Configure plugin.
        """
        Plugin.configure(self, options, conf)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next