2015-01-19 16:37:50 +01:00
|
|
|
[tox]
|
2025-04-06 12:11:03 +02:00
|
|
|
envlist = {py39,py310,py311,py312,py313}-{sqlite,postgresql}
|
2015-01-19 16:37:50 +01:00
|
|
|
|
|
|
|
|
[testenv]
|
2026-03-21 18:46:34 +01:00
|
|
|
changedir = {toxworkdir}
|
2022-04-16 18:30:15 +02:00
|
|
|
extras = test
|
2021-12-13 23:10:08 +01:00
|
|
|
commands =
|
2026-03-21 18:46:34 +01:00
|
|
|
coverage run --source=trytond.modules.account --omit=*/tests/* -m xmlrunner discover -s trytond.modules.account {posargs}
|
2023-01-08 11:18:56 +01:00
|
|
|
commands_post =
|
|
|
|
|
coverage report
|
|
|
|
|
coverage xml
|
2015-01-19 16:37:50 +01:00
|
|
|
deps =
|
2021-12-13 23:10:08 +01:00
|
|
|
coverage
|
2023-01-08 01:55:20 +01:00
|
|
|
unittest-xml-reporting
|
2022-04-10 19:11:37 +02:00
|
|
|
postgresql: psycopg2 >= 2.7.0
|
2022-12-16 23:16:08 +01:00
|
|
|
passenv = *
|
2015-01-19 16:37:50 +01:00
|
|
|
setenv =
|
|
|
|
|
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
|
|
|
|
|
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
|
2022-12-16 23:16:08 +01:00
|
|
|
sqlite: DB_NAME={env:DB_NAME::memory:}
|
|
|
|
|
postgresql: DB_NAME={env:DB_NAME:test}
|