Skip to content

Commit

Permalink
Add more test cases
Browse files Browse the repository at this point in the history
following up from #145

Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
  • Loading branch information
aiven-sal committed Dec 10, 2024
1 parent 1f6b63c commit 3048156
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,14 @@ def test_getex(self, r):
r.set("a", 1)
with pytest.raises(valkey.DataError):
r.getex("a", ex=10, px=10)
with pytest.raises(valkey.DataError):
r.getex("a", ex=10, exat=10)
with pytest.raises(valkey.DataError):
r.getex("a", ex=10, pxat=10)
with pytest.raises(valkey.DataError):
r.getex("a", exat=10, pxat=10)
with pytest.raises(valkey.DataError):
r.getex("a", px=10, exat=10)
assert r.getex("a") == b"1"
assert r.ttl("a") == -1
assert r.getex("a", ex=60) == b"1"
Expand Down

0 comments on commit 3048156

Please sign in to comment.