changeset befb3e825e20 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=befb3e825e20
description:
Activate module tests for LRUDictTransaction tests
The test case use a Transaction instance which needs a database to
connect to.
diffstat:
trytond/tests/test_cache.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 7123014d260c -r befb3e825e20 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"