changeset 03fae7035df2 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=03fae7035df2
description:
Initialize the pool when test create database that is already created
diffstat:
trytond/tests/test_tryton.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 0df486b9e2db -r 03fae7035df2 trytond/tests/test_tryton.py
--- a/trytond/tests/test_tryton.py Sat Apr 30 22:57:33 2022 +0200
+++ b/trytond/tests/test_tryton.py Mon May 02 10:20:14 2022 +0200
@@ -927,6 +927,9 @@
})
Module = pool.get('ir.module')
Module.update_list()
+ else:
+ pool = Pool(name)
+ pool.init()
class ExtensionTestCase(unittest.TestCase):