(settings, test_runner_class=None)
| 395 | |
| 396 | |
| 397 | def 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 | |
| 409 | class TestContextDecorator: |
searching dependent graphs…