Skip to content

Commit

Permalink
Merge pull request #147 from valkey-io/aiven-sal/tests
Browse files Browse the repository at this point in the history
Add more test cases
  • Loading branch information
aiven-sal authored Dec 12, 2024
2 parents 6ceedff + b978794 commit 013fef0
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 013fef0

Please sign in to comment.