MCPcopy Index your code
hub / github.com/python/cpython / addTests

Method addTests

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

Source from the content-addressed store, hash-verified

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

Callers 15

__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 1

addTestMethod · 0.95

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