TestRedisCache

class tests.test_cache.TestRedisCache(methodName='runTest')[source]

RedisCache Test cases for caching related functions/classes in privex.helpers.cache

This is simply a child class for TestMemoryCache - but with an overridden setUpClass to ensure the cache adapter is set to RedisCache for this re-run.

__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

Methods

setUpClass()

Set the current cache adapter to an instance of RedisCache() and make it available through self.cache

Attributes

Attributes

pytestmark