Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ countTestCases
Method
countTestCases
Lib/unittest/case.py:508–509 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
506
"Hook method for deconstructing the class fixture after running all tests in the class."
507
508
def
countTestCases(self):
509
return
1
510
511
def
defaultTestResult(self):
512
return
result.TestResult()
Callers
15
test_countTestCases
Method · 0.45
test_discover_with_modules_that_fail_to_import
Method · 0.45
test_discover_with_init_modules_that_fail_to_import
Method · 0.45
test_discover_with_module_that_raises_SkipTest_on_import
Method · 0.45
test_discover_with_init_module_that_raises_SkipTest_on_import
Method · 0.45
test_init__tests_optional
Method · 0.45
test_init__empty_tests
Method · 0.45
test_init__tests_from_any_iterable
Method · 0.45
test_init__TestSuite_instances_in_tests
Method · 0.45
test_countTestCases_zero_simple
Method · 0.45
test_countTestCases_zero_nested
Method · 0.45
test_countTestCases_simple
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_countTestCases
Method · 0.36
test_discover_with_modules_that_fail_to_import
Method · 0.36
test_discover_with_init_modules_that_fail_to_import
Method · 0.36
test_discover_with_module_that_raises_SkipTest_on_import
Method · 0.36
test_discover_with_init_module_that_raises_SkipTest_on_import
Method · 0.36
test_init__tests_optional
Method · 0.36
test_init__empty_tests
Method · 0.36
test_init__tests_from_any_iterable
Method · 0.36
test_init__TestSuite_instances_in_tests
Method · 0.36
test_countTestCases_zero_simple
Method · 0.36
test_countTestCases_zero_nested
Method · 0.36
test_countTestCases_simple
Method · 0.36