From 85da55352eae40256948917ee1ec978b9ed6c849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 1 Apr 2024 12:27:33 +0200 Subject: [PATCH] Setup a database for CacheTestCase Since 8616fb62c5e9 some tests are decorated with transaction so the test case needs a database to run. --- trytond/trytond/tests/test_cache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trytond/trytond/tests/test_cache.py b/trytond/trytond/tests/test_cache.py index a6f37ad433..0c4586a6d9 100644 --- a/trytond/trytond/tests/test_cache.py +++ b/trytond/trytond/tests/test_cache.py @@ -24,6 +24,10 @@ cache_ignored_global_context = MemoryCache('test.cache.ignored.global') class CacheTestCase(unittest.TestCase): "Test Cache" + @classmethod + def setUpClass(cls): + activate_module('tests') + def testFreeze(self): "Test freeze" self.assertEqual(freeze([1, 2, 3]), (1, 2, 3))