diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 4e47ff491..000000000 --- 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 def0b6741..d58878633 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 3639fb147..7b0da550a 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ tests_require = [ "pytest>=3.6.3", "pytest-cov", + "pytest-random-order", "coveralls", "mock", "pytz",