changeset eb519d48fb94 in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset&node=eb519d48fb94
description:
Activate module tests for LRUDictTransaction tests
The test case use a Transaction instance which needs a database to
connect to.
(grafted from befb3e825e20657f2fd9d3e9643c4edaebaadcda)
diffstat:
trytond/tests/test_cache.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r ae0476e33d82 -r eb519d48fb94 trytond/tests/test_cache.py
--- a/trytond/tests/test_cache.py Sat Sep 17 19:00:48 2022 +0200
+++ b/trytond/tests/test_cache.py Mon Sep 19 09:03:03 2022 +0200
@@ -254,6 +254,10 @@
class LRUDictTransactionTestCase(unittest.TestCase):
"Test LRUDictTransaction"
+ @classmethod
+ def setUpClass(cls):
+ activate_module('tests')
+
@with_transaction()
def test_init(self):
"Test init set to transaction counter"