MCPcopy
hub / github.com/django/django / test_parallel_default

Method test_parallel_default

tests/test_runner/tests.py:498–505  ·  view source on GitHub ↗
(self, *mocked_objects)

Source from the content-addressed store, hash-verified

496class ManageCommandParallelTests(SimpleTestCase):
497 @mock.patch.object(multiprocessing, "get_start_method", return_value="fork")
498 def test_parallel_default(self, *mocked_objects):
499 with captured_stderr() as stderr:
500 call_command(
501 "test",
502 "--parallel",
503 testrunner="test_runner.tests.MockTestRunner",
504 )
505 self.assertIn("parallel=12", stderr.getvalue())
506
507 @mock.patch.object(multiprocessing, "get_start_method", return_value="fork")
508 def test_parallel_auto(self, *mocked_objects):

Callers

nothing calls this directly

Calls 3

captured_stderrFunction · 0.90
call_commandFunction · 0.90
getvalueMethod · 0.45

Tested by

no test coverage detected