Skip to content

Commit 67e7f38

Browse files
committed
tox: testenv: use single command, settings via env
1 parent d3d9bb3 commit 67e7f38

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tox.ini

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ setenv =
3535
COV_CORE_CONFIG={toxinidir}/.coveragerc
3636
COV_CORE_DATAFILE={toxinidir}/.coverage.eager
3737

38+
mysql_innodb: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_mysql_innodb
39+
mysql_myisam: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_mysql_myisam
40+
postgres: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_postgres
41+
sqlite: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite
42+
sqlite_file: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite_file
43+
3844
passenv = PYTEST_ADDOPTS
3945
usedevelop = True
4046
commands =
4147
checkqa: flake8 --version
4248
checkqa: flake8 --show-source --statistics {posargs:pytest_django pytest_django_test}
43-
mysql_innodb: pytest --ds=pytest_django_test.settings_mysql_innodb --strict {posargs:tests}
44-
mysql_myisam: pytest --ds=pytest_django_test.settings_mysql_myisam --strict {posargs:tests}
45-
postgres: pytest --ds=pytest_django_test.settings_postgres --strict {posargs:tests}
46-
sqlite: pytest --ds=pytest_django_test.settings_sqlite --strict {posargs:tests}
47-
sqlite_file: pytest --ds=pytest_django_test.settings_sqlite_file --strict {posargs:tests}
49+
pytest --strict {posargs:tests}
4850

4951
[testenv:doc8]
5052
basepython = python3.6

0 commit comments

Comments
 (0)