Support running tox -p

This commit is contained in:
Alieh Rymašeŭski 2020-06-10 14:34:58 +03:00
parent d97ac056d4
commit fd169771df
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View file

@ -6,7 +6,7 @@
.idea
.project
.pydevproject
.coverage
.coverage*
venv/
.tox/
local_settings.py

View file

@ -38,7 +38,7 @@ else:
DATABASES = {
'default': {
'ENGINE': POSTGRES_DRIVER,
'NAME': 'auditlog_tests_db',
'NAME': 'auditlog' + os.environ.get("TOX_PARALLEL_ENV", ""),
'USER': 'postgres',
'PASSWORD': '',
'HOST': '127.0.0.1',

View file

@ -8,7 +8,7 @@ envlist =
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/src/auditlog
commands = coverage run --source src/auditlog src/runtests.py
commands = coverage run -p --source src/auditlog src/runtests.py
deps =
django-111: Django>=1.11,<2.0
django-20: Django>=2.0,<2.1