3
0
Fork 0

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...
This commit is contained in:
Lance Edgar 2025-12-28 22:48:36 -06:00
parent ac2d520bde
commit 3af8e8aaf2
6 changed files with 242 additions and 8 deletions

12
tox.ini
View file

@ -5,12 +5,15 @@ envlist = py38, py39, py310, py311, nox
[testenv]
extras = continuum,tests
commands =
pytest -m 'not versioned' {posargs}
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' {posargs}
commands =
pytest -m 'not versioned and not functional' {posargs}
pytest -m 'functional' {posargs}
[testenv:pylint]
basepython = python3.11
@ -19,8 +22,9 @@ commands = pylint wuttaweb
[testenv:coverage]
basepython = python3.11
commands =
pytest -m 'not versioned' --cov=wuttaweb
pytest -m 'versioned' --cov-append --cov=wuttaweb --cov-report=html --cov-fail-under=100
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