diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/test_redis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/test_redis.py b/tests/integration/test_redis.py index c6cb88a..4c74d68 100644 --- a/tests/integration/test_redis.py +++ b/tests/integration/test_redis.py @@ -42,14 +42,14 @@ class TestRedisCache(BaseCacheTest): def test_ttl(self, mock_setex): session = self.init_session(expire_after=60) session.get(httpbin('get')) - call_args = mock_setex.mock_calls[0].args + call_args = mock_setex.mock_calls[0][1] assert call_args[1] == 3660 # Should be expiration + default offset @patch.object(StrictRedis, 'setex') def test_ttl__offset(self, mock_setex): session = self.init_session(expire_after=60, ttl_offset=500) session.get(httpbin('get')) - call_args = mock_setex.mock_calls[0].args + call_args = mock_setex.mock_calls[0][1] assert call_args[1] == 560 # Should be expiration + custom offset @patch.object(StrictRedis, 'setex') |