Skip to content

Commit

Permalink
fixed the query test to catach AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
meiravgri authored Sep 12, 2023
1 parent 3fb2c68 commit 25d4ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,5 +2267,5 @@ def test_query_timeout(r: redis.Redis):
q1 = Query("foo").timeout(0)
assert q1.get_args() == ["foo", "TIMEOUT", 0, "LIMIT", 0, 10]
q2 = Query("foo").timeout("not_a_number")
with pytest.raises(redis.ResponseError):
with pytest.raises(AttributeError):
r.ft().search(q2)

0 comments on commit 25d4ddf

Please sign in to comment.