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

Function load_tests

Lib/idlelib/idle_test/__init__.py:16–23  ·  view source on GitHub ↗
(loader, standard_tests, pattern)

Source from the content-addressed store, hash-verified

14# Example: pairs with 'c' and 'g' test c* files and grep.
15
16def load_tests(loader, standard_tests, pattern):
17 this_dir = dirname(__file__)
18 top_dir = dirname(dirname(this_dir))
19 module_tests = loader.discover(start_dir=this_dir,
20 pattern='test_*.py', # Insert here.
21 top_level_dir=top_dir)
22 standard_tests.addTests(module_tests)
23 return standard_tests

Callers

nothing calls this directly

Calls 3

dirnameFunction · 0.90
addTestsMethod · 0.80
discoverMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…