diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 4e47ff4..0000000 --- a/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -DJANGO_SETTINGS_MODULE = django_test_settings diff --git a/setup.cfg b/setup.cfg index def0b67..d588786 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,3 +43,7 @@ include_trailing_comma=True force_grid_wrap=0 use_parentheses=True line_length=88 + +[tool:pytest] +DJANGO_SETTINGS_MODULE = django_test_settings +addopts = --random-order diff --git a/setup.py b/setup.py index 3639fb1..7b0da55 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ rest_framework_require = ["djangorestframework>=3.6.3"] tests_require = [ "pytest>=3.6.3", "pytest-cov", + "pytest-random-order", "coveralls", "mock", "pytz",