0
0
mirror of https://github.com/alerta/alerta.git synced 2024-07-27 01:42:32 +00:00
alerta_alerta/tox.ini
Nick Satterly 84909bf9ab
Bump support versions for Python and MongoDB (#1717)
* Support python 3.10 and remove support for MongoDB 4.0, pin Werkzeug for Flask

* FIXME - terrible hack to fix race condition in test
2022-07-04 00:02:55 +02:00

30 lines
517 B
INI

[tox]
envlist = py{37,38,39,310}-{mongodb,postgres}
skip_missing_interpreters=true
[testenv]
deps =
pytest
requests_mock
mongodb: pymongo
postgres: psycopg2
python-ldap
lxml
whitelist_externals =
createdb
dropdb
pytest
commands_pre =
postgres: -createdb alerta
commands = 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