-
Notifications
You must be signed in to change notification settings - Fork 176
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
Added fix for key error because of missing 'hits' key. #616
Added fix for key error because of missing 'hits' key. #616
Conversation
e3adfc3
to
71137f2
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #616 +/- ##
==========================================
+ Coverage 71.98% 72.12% +0.14%
==========================================
Files 89 89
Lines 7935 7939 +4
==========================================
+ Hits 5712 5726 +14
+ Misses 2223 2213 -10 ☔ View full report in Codecov by Sentry. |
71137f2
to
4df886c
Compare
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.
AFAIK tests should go next to other scroll tests, so in test_actions.py
?
Btw, tests aren't very well organized, my rule of thumb is that for every file like actions.py
there should be one test_actions.py
and if actions is a kitchen sink of many things, i can be split up into a folder called actions
with files such as scroll.py
, and tests organized similarly. So whatever gets us closer to that is A-OK.
63aa1eb
to
64f2f6b
Compare
Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com> Updated CHANGELOG.md. Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com> nox formatting applied. Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com> Added new unit test for actions scan function. Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com> Added type hints & nox formatting. Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com> Added fix to async scan function & added matching unit tests for async. Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com>
64f2f6b
to
fad9307
Compare
…oject#616) Updated CHANGELOG.md. nox formatting applied. Added new unit test for actions scan function. Added type hints & nox formatting. Added fix to async scan function & added matching unit tests for async. Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com> Signed-off-by: roma2023 <romasaparhan19@gmail.com>
Description
Adds graceful/defensive code for handling case of missing "hits" key in scan response.
Issues Resolved
Closes #313
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.