Skip to content

Fail when running tryton module test suite with flask_tryton == 0.12

When running the test suite of a tryton module that has flask_tryton as dependency fails with:

======================================================================
ERROR: tearDownClass (test_module.KopenTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokoli/.virtualenvs/kopen/lib/python3.12/site-packages/trytond/tests/test_tryton.py", line 301, in tearDownClass
    drop_db()
  File "/home/pokoli/.virtualenvs/kopen/lib/python3.12/site-packages/trytond/tests/test_tryton.py", line 1082, in drop_db
    Pool.stop(name)
TypeError: Tryton.init_app.<locals>.<lambda>() missing 1 required positional argument: 'database_name'

----------------------------------------------------------------------
Ran 30 tests in 45.771s

This was introduced by 8b2b860d4601

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information