Setup a database for CacheTestCase
Since 8616fb62c5e9 some tests are decorated with transaction so the test case needs a database to run.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user