plugins.py 340 B

1234567891011121314151617
  1. from nose.plugins import Plugin
  2. plugin_began = False
  3. class SanityCheckPlugin(Plugin):
  4. enabled = True
  5. def options(self, parser, env):
  6. """Register commandline options."""
  7. def configure(self, options, conf):
  8. """Configure plugin."""
  9. def begin(self):
  10. global plugin_began
  11. plugin_began = True