MCPcopy
hub / github.com/django/django / get_runner

Function get_runner

django/test/utils.py:397–406  ·  view source on GitHub ↗
(settings, test_runner_class=None)

Source from the content-addressed store, hash-verified

395
396
397def get_runner(settings, test_runner_class=None):
398 test_runner_class = test_runner_class or settings.TEST_RUNNER
399 test_path = test_runner_class.split(".")
400 # Allow for relative paths
401 if len(test_path) > 1:
402 test_module_name = ".".join(test_path[:-1])
403 else:
404 test_module_name = "."
405 test_module = __import__(test_module_name, {}, {}, test_path[-1])
406 return getattr(test_module, test_path[-1])
407
408
409class TestContextDecorator:

Callers 3

add_argumentsMethod · 0.90
handleMethod · 0.90
django_testsFunction · 0.90

Calls 2

splitMethod · 0.45
joinMethod · 0.45

Tested by 3

add_argumentsMethod · 0.72
handleMethod · 0.72
django_testsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…