Python unittest.TestLoader.__init__() Examples
The following are 30
code examples of unittest.TestLoader.__init__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
unittest.TestLoader
, or try the search function
.
Example #1
Source File: test.py From scylla with Apache License 2.0 | 5 votes |
def __init__(self, fget): self.fget = fget
Example #2
Source File: test.py From lambda-packs with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #3
Source File: test.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #4
Source File: test.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #5
Source File: test.py From Mastering-Elasticsearch-7.0 with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #6
Source File: test.py From Mastering-Elasticsearch-7.0 with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #7
Source File: test.py From Hands-On-Deep-Learning-for-Games with MIT License | 5 votes |
def loadTestsFromModule(self, module, pattern=None): """Return a suite of all tests cases contained in the given module If the module is a package, load tests from all the modules in it. If the module has an ``additional_tests`` function, call it and add the return value to the tests. """ if module in self._visited: return None self._visited.add(module) tests = [] tests.append(TestLoader.loadTestsFromModule(self, module)) if hasattr(module, "additional_tests"): tests.append(module.additional_tests()) if hasattr(module, '__path__'): for file in resource_listdir(module.__name__, ''): if file.endswith('.py') and file != '__init__.py': submodule = module.__name__ + '.' + file[:-3] else: if resource_exists(module.__name__, file + '/__init__.py'): submodule = module.__name__ + '.' + file else: continue tests.append(self.loadTestsFromName(submodule)) if len(tests) != 1: return self.suiteClass(tests) else: return tests[0] # don't create a nested suite for only one return # adapted from jaraco.classes.properties:NonDataProperty
Example #8
Source File: test.py From anpr with Creative Commons Attribution 4.0 International | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #9
Source File: test.py From ironpython2 with Apache License 2.0 | 5 votes |
def __init__(self, fget): self.fget = fget
Example #10
Source File: test.py From deepWordBug with Apache License 2.0 | 5 votes |
def __init__(self, fget): self.fget = fget
Example #11
Source File: test.py From Hands-On-Deep-Learning-for-Games with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #12
Source File: test.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #13
Source File: test.py From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International | 5 votes |
def __init__(self, fget): self.fget = fget
Example #14
Source File: test.py From scylla with Apache License 2.0 | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #15
Source File: test.py From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International | 5 votes |
def loadTestsFromModule(self, module, pattern=None): """Return a suite of all tests cases contained in the given module If the module is a package, load tests from all the modules in it. If the module has an ``additional_tests`` function, call it and add the return value to the tests. """ if module in self._visited: return None self._visited.add(module) tests = [] tests.append(TestLoader.loadTestsFromModule(self, module)) if hasattr(module, "additional_tests"): tests.append(module.additional_tests()) if hasattr(module, '__path__'): for file in resource_listdir(module.__name__, ''): if file.endswith('.py') and file != '__init__.py': submodule = module.__name__ + '.' + file[:-3] else: if resource_exists(module.__name__, file + '/__init__.py'): submodule = module.__name__ + '.' + file else: continue tests.append(self.loadTestsFromName(submodule)) if len(tests) != 1: return self.suiteClass(tests) else: return tests[0] # don't create a nested suite for only one return # adapted from jaraco.classes.properties:NonDataProperty
Example #16
Source File: test.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #17
Source File: test.py From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #18
Source File: test.py From stopstalk-deployment with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #19
Source File: test.py From stopstalk-deployment with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #20
Source File: test.py From jarvis with GNU General Public License v2.0 | 5 votes |
def __init__(self, fget): self.fget = fget
Example #21
Source File: test.py From planespotter with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #22
Source File: test.py From jarvis with GNU General Public License v2.0 | 5 votes |
def loadTestsFromModule(self, module, pattern=None): """Return a suite of all tests cases contained in the given module If the module is a package, load tests from all the modules in it. If the module has an ``additional_tests`` function, call it and add the return value to the tests. """ if module in self._visited: return None self._visited.add(module) tests = [] tests.append(TestLoader.loadTestsFromModule(self, module)) if hasattr(module, "additional_tests"): tests.append(module.additional_tests()) if hasattr(module, '__path__'): for file in resource_listdir(module.__name__, ''): if file.endswith('.py') and file != '__init__.py': submodule = module.__name__ + '.' + file[:-3] else: if resource_exists(module.__name__, file + '/__init__.py'): submodule = module.__name__ + '.' + file else: continue tests.append(self.loadTestsFromName(submodule)) if len(tests) != 1: return self.suiteClass(tests) else: return tests[0] # don't create a nested suite for only one return # adapted from jaraco.classes.properties:NonDataProperty
Example #23
Source File: test.py From planespotter with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #24
Source File: test.py From jarvis with GNU General Public License v2.0 | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #25
Source File: test.py From rules_pip with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #26
Source File: test.py From rules_pip with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #27
Source File: test.py From coffeegrindsize with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #28
Source File: test.py From setuptools with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()
Example #29
Source File: test.py From setuptools with MIT License | 5 votes |
def __init__(self, fget): self.fget = fget
Example #30
Source File: test.py From coffeegrindsize with MIT License | 5 votes |
def __init__(self): TestLoader.__init__(self) self._visited = set()