mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
The build will now run with multiple processes in order to speed up tests.
This commit is contained in:
parent
fbf5f58864
commit
813219c5df
|
@ -5,11 +5,12 @@ import pytest
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import multiprocessing
|
||||||
|
|
||||||
|
|
||||||
PYTEST_ARGS = {
|
PYTEST_ARGS = {
|
||||||
'default': ['tests'],
|
'default': ['tests'],
|
||||||
'fast': ['tests', '-q'],
|
'fast': ['tests', '-q', '-n %d' % multiprocessing.cpu_count()],
|
||||||
}
|
}
|
||||||
|
|
||||||
FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501']
|
FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user