diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2007-04-14 04:18:26 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2007-04-14 04:18:26 +0000 |
commit | cff4d5cb6dce2fcd84ceb46569275447005beae4 (patch) | |
tree | 925d542292dc0c99bab790c25ffc6b58bfc59bdb /nose/loader.py | |
parent | 034db093c68aa7d07730cc3146c70b4ec8e0f27a (diff) | |
download | nose-cff4d5cb6dce2fcd84ceb46569275447005beae4.tar.gz |
Notes and work on fixing design of context fixtures, w/r/t loadTestsFromNames
Diffstat (limited to 'nose/loader.py')
-rw-r--r-- | nose/loader.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nose/loader.py b/nose/loader.py index 246924b..b0971ce 100644 --- a/nose/loader.py +++ b/nose/loader.py @@ -316,6 +316,16 @@ class TestLoader(unittest.TestLoader): return suite([ Failure(ValueError, "Unresolvable test name %s" % name)]) +# def loadTestsFromNames(self, names, module=None): +# """Load tests from the given names. +# """ +# def load(self=self, names=names, module=module): +# for name in names: +# # FIXME hook before +# yield self.loadTestsFromName(name, module) +# # FIXME hook after +# return LazySuite(load) + def makeTest(self, obj, parent=None): """Given a test object and its parent, return a unittest.TestCase instance that can be run as a test. |