mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Move testing ENV vars into pytest.ini
This commit is contained in:
parent
e8e38befb7
commit
2ac1b78a2c
@ -19,6 +19,7 @@ gunicorn==19.6.0
|
|||||||
pytest
|
pytest
|
||||||
pytest-django
|
pytest-django
|
||||||
pytest-sugar
|
pytest-sugar
|
||||||
|
pytest-env
|
||||||
pep8
|
pep8
|
||||||
flake8
|
flake8
|
||||||
tox
|
tox
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
DJANGO_SETTINGS_MODULE=paperless.settings
|
DJANGO_SETTINGS_MODULE=paperless.settings
|
||||||
|
env =
|
||||||
|
PAPERLESS_CONSUME=/tmp
|
||||||
|
PAPERLESS_PASSPHRASE=THISISNOTASECRET
|
||||||
|
PAPERLESS_SECRET=paperless
|
||||||
|
PAPERLESS_EMAIL_SECRET=paperless
|
||||||
|
@ -8,13 +8,8 @@ skipsdist = True
|
|||||||
envlist = py34, py35, py36, pep8
|
envlist = py34, py35, py36, pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands = {envpython} manage.py test
|
commands = pytest
|
||||||
deps = -r{toxinidir}/../requirements.txt
|
deps = -r{toxinidir}/../requirements.txt
|
||||||
setenv =
|
|
||||||
PAPERLESS_CONSUME=/tmp
|
|
||||||
PAPERLESS_PASSPHRASE=THISISNOTASECRET
|
|
||||||
PAPERLESS_SECRET=paperless
|
|
||||||
PAPERLESS_EMAIL_SECRET=paperless
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands=pep8
|
commands=pep8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user