mirror of
https://github.com/alerta/alerta.git
synced 2025-01-24 09:19:40 +00:00
34 lines
688 B
INI
34 lines
688 B
INI
[tox]
|
|
envlist = py{37,38,39,310}-{mongodb,postgres}
|
|
skip_missing_interpreters=true
|
|
|
|
[pytest]
|
|
filterwarnings =
|
|
error::DeprecationWarning
|
|
error::PendingDeprecationWarning
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
requests_mock
|
|
mongodb: pymongo
|
|
postgres: psycopg2
|
|
python-ldap
|
|
lxml
|
|
|
|
whitelist_externals =
|
|
createdb
|
|
dropdb
|
|
pytest
|
|
|
|
commands_pre =
|
|
postgres: -createdb alerta
|
|
commands = python -W always::DeprecationWarning -W always::PendingDeprecationWarning -m pytest -s {posargs:tests}
|
|
commands_post =
|
|
postgres: -dropdb alerta
|
|
|
|
#passenv = *
|
|
setenv =
|
|
ALERTA_SVR_CONF_FILE =
|
|
mongodb: DATABASE_URL = mongodb://127.0.0.1:27017/alerta
|
|
postgres: DATABASE_URL = postgres:///alerta
|