3
0
Fork 0
wuttaweb/tox.ini
Lance Edgar 3af8e8aaf2 fix: flush session when creating new object via MasterView
whoops guess that got missed in the refactor.

this also adds our first functional test!  to reproduce the problem
since unit tests didn't catch it.  unfortunately i'm still missing
something about how the functional TestApp is supposed to work, in
conjunction with the test DB etc.  seems to be acting strangely with
regard to permission checks especially...
2025-12-28 22:48:36 -06:00

33 lines
901 B
INI

[tox]
envlist = py38, py39, py310, py311, nox
[testenv]
extras = continuum,tests
commands =
pytest -m 'not versioned and not functional' {posargs}
pytest -m 'versioned' {posargs}
pytest -m 'functional' {posargs}
[testenv:nox]
extras = tests
commands =
pytest -m 'not versioned and not functional' {posargs}
pytest -m 'functional' {posargs}
[testenv:pylint]
basepython = python3.11
commands = pylint wuttaweb
[testenv:coverage]
basepython = python3.11
commands =
pytest -m 'not versioned and not functional' --cov=wuttaweb
pytest -m 'versioned' --cov-append --cov=wuttaweb --cov-report=html
pytest -m 'functional' --cov-append --cov=wuttaweb --cov-report=html --cov-fail-under=100
[testenv:docs]
basepython = python3.11
extras = docs
changedir = docs
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs