-
Notifications
You must be signed in to change notification settings - Fork 90
Clear all indexes before starting tests in a certain context #95
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
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.
This PR looks good to me, I added two optional suggestions (removing one step from clear_all_indexes
and checking that the clean actually actually works). If you feel this is useful, you can add it, But if not feel free to merge as it is. 👍
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.
Good. But I just thought that this method clear_all_indexes
should also be called in the main client test:
And maybe before and after all the tests are done
@eskombro I didn't do it because there are no tests on indexes, only on clients. Should I clear all clients in every test? Seems weird... |
Co-authored-by: Samuel Jimenez <sjimenezre@gmail.com>
293e0a9
to
e73740d
Compare
My bad, I got confused in my head, you are absolutely right, nevermind! :) |
* Upd version * Add method to use faceting sub routes (#90) * Remane apikey into api_key (#93) * Implement faceting in search (#94) * Implement faceting in search * Upd test * Clear all indexes before starting tests in a certain context (#95) * Clear all indexes before starting tests in a certain context * Update meilisearch/tests/__init__.py Co-authored-by: Samuel Jimenez <sjimenezre@gmail.com> Co-authored-by: Samuel Jimenez <sjimenezre@gmail.com> * Upd version * Add method to use faceting sub routes (#90) * Remane apikey into api_key (#93) * Implement faceting in search (#94) * Implement faceting in search * Upd test * Fix parameter default value (#97) * Add test with multiple facetFilters (#98) * Change create_index prototype (#99) * Change create_index prototype * Update meilisearch/client.py Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com> * Update meilisearch/index.py Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com> Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com> Co-authored-by: Samuel Jimenez <sjimenezre@gmail.com> Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
Closes #92
Bonus:
I've just started to use
pdb
as a debugger, so I added it as a tip in the README 🙂https://docs.python.org/3/library/pdb.html