Lines Matching defs:module
17 module = None
58 'test.foo', 'test-not-a-module.py', 'another_dir'],
74 loader._get_module_from_name = lambda path: path + ' module'
76 def loadTestsFromModule(module, pattern=None):
78 base = orig_load_tests(module, pattern=pattern)
79 return base + [module + ' tests']
89 expected = [[name + ' module tests'] for name in
91 expected.extend([[('test_dir.%s' % name) + ' module tests'] for name in
120 loader._get_module_from_name = lambda path: path + ' module'
122 def loadTestsFromModule(module, pattern=None):
124 base = orig_load_tests(module, pattern=pattern)
125 return base + [module + ' tests']
177 def loadTestsFromModule(module, pattern=None):
179 base = orig_load_tests(module, pattern=pattern)
180 return base + [module.path + ' module tests']
191 # still calls the baseline module loader.
193 [['a_directory module tests'],
195 'test_directory module tests'],
196 ['test_directory2 module tests']])
199 # The test module paths should be sorted for reliable execution order
204 # (but there are no tests in our stub module itself, so that is [] at
251 def loadTestsFromModule(module, pattern=None):
253 base = orig_load_tests(module, pattern=pattern)
254 return base + [module.path + ' module tests']
265 # still calls the baseline module loader.
267 [['a_directory module tests'],
269 'test_directory module tests'],
270 ['test_directory2 module tests']])
271 # The test module paths should be sorted for reliable execution order
301 # a module-from-name call to turn that into a module
307 # the module load tests for both package and plain module called,
308 # and the plain module result nested by the package module load_tests
495 'Failed to import test module: test_this_does_not_exist' in error,
521 'Failed to import test module: my_package' in error,
760 msg = re.escape(r"'foo' module incorrectly imported from %r. Expected %r. "
761 "Is this module globally installed?" % (mod_dir, expected_dir))
826 'as dotted module names')