Skip to content

Commit 6d051c0

Browse files
committed
Codestyl changes
1 parent ea6c792 commit 6d051c0

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

tests/test_asyncio/test_pipeline.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,9 @@ async def test_pipeline_discard(self, r):
421421
@pytest.mark.onlynoncluster
422422
async def test_send_set_commands_over_async_pipeline(self, r: redis.asyncio.Redis):
423423
pipe = r.pipeline()
424-
pipe.hset('hash:1', 'foo', 'bar')
425-
pipe.hset('hash:1', 'bar', 'foo')
426-
pipe.hset('hash:1', 'baz', 'bar')
427-
pipe.hgetall('hash:1')
424+
pipe.hset("hash:1", "foo", "bar")
425+
pipe.hset("hash:1", "bar", "foo")
426+
pipe.hset("hash:1", "baz", "bar")
427+
pipe.hgetall("hash:1")
428428
resp = await pipe.execute()
429-
assert resp == [
430-
1, 1, 1,
431-
{b'bar': b'foo', b'baz': b'bar', b'foo': b'bar'}
432-
]
429+
assert resp == [1, 1, 1, {b"bar": b"foo", b"baz": b"bar", b"foo": b"bar"}]

tests/test_pipeline.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,9 @@ def test_pipeline_discard(self, r):
416416
@pytest.mark.onlynoncluster
417417
def test_send_set_commands_over_pipeline(self, r: redis.Redis):
418418
pipe = r.pipeline()
419-
pipe.hset('hash:1', 'foo', 'bar')
420-
pipe.hset('hash:1', 'bar', 'foo')
421-
pipe.hset('hash:1', 'baz', 'bar')
422-
pipe.hgetall('hash:1')
419+
pipe.hset("hash:1", "foo", "bar")
420+
pipe.hset("hash:1", "bar", "foo")
421+
pipe.hset("hash:1", "baz", "bar")
422+
pipe.hgetall("hash:1")
423423
resp = pipe.execute()
424-
assert resp == [
425-
1, 1, 1,
426-
{b'bar': b'foo', b'baz': b'bar', b'foo': b'bar'}
427-
]
424+
assert resp == [1, 1, 1, {b"bar": b"foo", b"baz": b"bar", b"foo": b"bar"}]

0 commit comments

Comments
 (0)