diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2007-04-20 19:33:22 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2007-04-20 19:33:22 +0000 |
commit | 437a4aef6a58863a8c995cca2079b8d04b1b6231 (patch) | |
tree | 1eab23e3a5f47ac644034797816abd27f2b2e7d5 /nose/loader.py | |
parent | a1d6c855f271c436016137f8165030cf62bd3a84 (diff) | |
download | nose-437a4aef6a58863a8c995cca2079b8d04b1b6231.tar.gz |
Implemented basics of testid plugin. Still needs tests for doctests, and more tests for generator tests
Diffstat (limited to 'nose/loader.py')
-rw-r--r-- | nose/loader.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nose/loader.py b/nose/loader.py index 41456ad..3462e36 100644 --- a/nose/loader.py +++ b/nose/loader.py @@ -318,6 +318,17 @@ class TestLoader(unittest.TestLoader): return suite([ Failure(ValueError, "Unresolvable test name %s" % name)]) + def loadTestsFromNames(self, names, module=None): + plug_res = self.config.plugins.loadTestsFromNames(names, module) + if plug_res: + suite, names = plug_res + if suite: + return self.suiteClass([ + self.suiteClass(suite), + unittest.TestLoader.loadTestsFromNames(self, names, module) + ]) + return unittest.TestLoader.loadTestsFromNames(self, names, module) + # def loadTestsFromNames(self, names, module=None): # """Load tests from the given names. # """ |