changeset 4c63f23bd432 in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=4c63f23bd432
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 ffac357d4312 -r 4c63f23bd432 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
@@ -225,6 +225,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"

Reply via email to