Skip to main content

get_max_test_processes

The maximum number of test processes when using the --parallel option.

def get_max_test_processes() - > int

The maximum number of test processes when using the --parallel option.

Returns

TypeDescription
intThe number of parallel processes to use, determined by the DJANGO_TEST_PROCESSES environment variable, the system CPU count, or 1 if the multiprocessing start method is unsupported.