Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awmackowiak committed Jun 5, 2023
1 parent 1253610 commit 8d0b6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/unit/backends/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def test_socket_url(self):
assert x.connparams['db'] == 3

def test_socket_keepalive_options(self):
pytest.importorskip('redis')
pytest.importorskip('redis')

self.app.conf.redis_socket_keepalive = True
self.app.conf.result_backend_transport_options = {
Expand All @@ -471,7 +471,7 @@ def test_socket_keepalive_options(self):
'socket:///tmp/redis.sock?virtual_host=/3', app=self.app,
)

assert x.connparams['socket_keepalive'] == True
assert x.connparams['socket_keepalive'] is True
assert x.connparams['socket_keepalive_options'] == {4: 300, 6: 9, 5: 45}

def test_backend_ssl(self):
Expand Down

0 comments on commit 8d0b6f7

Please sign in to comment.