Replace execute_command with specific redis functions when possible (#346)

* replace execute_command

* change to root_path
This commit is contained in:
dvora-h 2022-08-22 18:04:10 +03:00 committed by GitHub
parent 60f102d188
commit 57608d85f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -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