Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add asyncio tests
  • Loading branch information
davemcphee committed Mar 14, 2023
commit d76bbed2d3e17a94a75d9ec74b79f5a371139fe8
5 changes: 5 additions & 0 deletions tests/test_asyncio/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ async def test_arrindex(modclient: redis.Redis):
await modclient.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])
assert 1 == await modclient.json().arrindex("arr", Path.root_path(), 1)
assert -1 == await modclient.json().arrindex("arr", Path.root_path(), 1, 2)
assert 4 == await modclient.json().arrindex("arr", Path.root_path(), 4)
assert 4 == await modclient.json().arrindex("arr", Path.root_path(), 4, start=0)
assert 4 == await modclient.json().arrindex("arr", Path.root_path(), 4, start=0, stop=5000)
assert -1 == await modclient.json().arrindex("arr", Path.root_path(), 4, start=0, stop=-1)
assert -1 == await modclient.json().arrindex("arr", Path.root_path(), 4, start=1, stop=3)


@pytest.mark.redismod
Expand Down