Replace execute_command
with specific redis functions when possible (#346)
* replace execute_command * change to root_path
This commit is contained in:
parent
60f102d188
commit
57608d85f4
3 changed files with 8 additions and 7 deletions
|
@ -293,7 +293,7 @@ async def test_saves_many_explicit_transaction(address, m):
|
|||
async with m.Member.db().pipeline(transaction=True) as pipeline:
|
||||
await m.Member.add(members, pipeline=pipeline)
|
||||
assert result == [member1, member2]
|
||||
assert await pipeline.execute() == ["OK", "OK"]
|
||||
assert await pipeline.execute() == [True, True]
|
||||
|
||||
assert await m.Member.get(pk=member1.pk) == member1
|
||||
assert await m.Member.get(pk=member2.pk) == member2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue