-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TIMEOUT to query class #2519
Conversation
Codecov ReportBase: 92.24% // Head: 92.22% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2519 +/- ##
==========================================
- Coverage 92.24% 92.22% -0.02%
==========================================
Files 113 113
Lines 29357 29377 +20
==========================================
+ Hits 27079 27093 +14
- Misses 2278 2284 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
tests/test_asyncio/test_search.py
Outdated
|
||
|
||
@pytest.mark.redismod | ||
def test_timeout(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shacharPash Can you combine the 2 tests into one and rename it to test_query_timeout?
tests/test_asyncio/test_search.py
Outdated
@pytest.mark.redismod | ||
def test_not_number_timeout(modclient: redis.Redis): | ||
q1 = Query("foo").timeout("not a number") | ||
with pytest.raises(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to check for a more specific error
tests/test_search.py
Outdated
|
||
|
||
@pytest.mark.redismod | ||
def test_timeout(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the async tests...
Pull Request check-list
Please make sure to review and check all of these items:
$ tox
pass with this change (including linting)?NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Please provide a description of the change here.