-
Notifications
You must be signed in to change notification settings - Fork 217
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
Remove needs db and add patch #3687
Conversation
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.
In test_auth.py
we're not testing for the contents of the results so for those tests, mocking get_db_results
to return the input argument results
as-is would've worked.
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.
I have small change, but otherwise it looks good to me. Thanks for the contribution and for redoing the work based on reviews @ngken0995. The PR is almost ready to go 🚀!
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.
These changes look great, thanks for making them @ngken0995!
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.
LGTM! This is great.
Fixes
Fixes #3436 by @dhruvkb
Description
Remove
needs_db
because ES hit will alway map to DB result. Creating expected data by storing them in pickle file and retrieving those data in testing with open file and use patch to mockget_db_result
return value.Testing Instructions
just api/test
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin