MCPcopy Index your code
hub / github.com/RustPython/RustPython / addTests

Method addTests

Lib/unittest/suite.py:53–57  ·  view source on GitHub ↗
(self, tests)

Source from the content-addressed store, hash-verified

51 self._tests.append(test)
52
53 def addTests(self, tests):
54 if isinstance(tests, str):
55 raise TypeError("tests must be an iterable of tests, not a string")
56 for test in tests:
57 self.addTest(test)
58
59 def run(self, result):
60 for index, test in enumerate(self):

Callers 14

__init__Method · 0.95
test_basetestsuiteMethod · 0.95
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
load_testsFunction · 0.80
test_addTestsMethod · 0.80
runTestsMethod · 0.80
runTestsFunction · 0.80

Calls 2

addTestMethod · 0.95
isinstanceFunction · 0.85

Tested by 11

test_basetestsuiteMethod · 0.76
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
load_testsFunction · 0.64
test_addTestsMethod · 0.64
runTestsMethod · 0.64
runTestsFunction · 0.64