Skip to content

Commit

Permalink
Fix Redis cache fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
rlmv committed Sep 10, 2018
1 parent 48ee344 commit 1431ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cache.py
Expand Up @@ -128,10 +128,10 @@ def all_caches(test_func):
"""
@pytest.mark.parametrize("redis_cache,", [
pytest.param(True, marks=require_redis),
(False,),
pytest.param(False)
])
def wrapper(redis_cache, *args, **kwargs):
with config.override(REDIS_CACHE=redis_cache[0]):
with config.override(REDIS_CACHE=redis_cache):
return test_func(redis_cache, *args, **kwargs)

return functools.wraps(test_func)(wrapper)
Expand Down

0 comments on commit 1431ae9

Please sign in to comment.