Make tests order independent (v3) (#940)

* Completes 'Make tests order independent'
This commit is contained in:
Jean-Louis Fuchs 2020-04-20 15:01:43 +02:00 committed by GitHub
parent 9bb0554c94
commit f33223daa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -1,2 +0,0 @@
[pytest]
DJANGO_SETTINGS_MODULE = django_test_settings

View File

@ -43,3 +43,7 @@ include_trailing_comma=True
force_grid_wrap=0 force_grid_wrap=0
use_parentheses=True use_parentheses=True
line_length=88 line_length=88
[tool:pytest]
DJANGO_SETTINGS_MODULE = django_test_settings
addopts = --random-order

View File

@ -15,6 +15,7 @@ rest_framework_require = ["djangorestframework>=3.6.3"]
tests_require = [ tests_require = [
"pytest>=3.6.3", "pytest>=3.6.3",
"pytest-cov", "pytest-cov",
"pytest-random-order",
"coveralls", "coveralls",
"mock", "mock",
"pytz", "pytz",