clowwindy
10 years ago
2 changed files with 28 additions and 1 deletions
@ -0,0 +1,27 @@ |
|||
import sys |
|||
import nose |
|||
from nose.plugins.base import Plugin |
|||
|
|||
class ExtensionPlugin(Plugin): |
|||
|
|||
name = "ExtensionPlugin" |
|||
|
|||
def options(self, parser, env): |
|||
Plugin.options(self,parser,env) |
|||
|
|||
def configure(self, options, config): |
|||
Plugin.configure(self, options, config) |
|||
self.enabled = True |
|||
|
|||
def wantFile(self, file): |
|||
return file.endswith('.py') |
|||
|
|||
def wantDirectory(self,directory): |
|||
return True |
|||
|
|||
def wantModule(self,file): |
|||
return True |
|||
|
|||
|
|||
if __name__ == '__main__': |
|||
nose.main(addplugins=[ExtensionPlugin()]) |
Loading…
Reference in new issue