diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-09-29 15:46:44 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-09-30 16:00:16 -0500 |
commit | 823398b25b48421c94c3aba61566837ee78545e0 (patch) | |
tree | ae258ff31fef5ceeba907b426a08971b8b05e382 /tests | |
parent | 747f472e7a50274f45e414c9ee4f8fe70f6f1131 (diff) | |
download | requests-cache-823398b25b48421c94c3aba61566837ee78545e0.tar.gz |
Fix tests for python 3.7
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') |