-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-4300 Forward comment argument in list_search_indexes #1569
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
test/test_index_management.py
Outdated
# Create a new search index on ``coll0`` that implicitly passes its type. | ||
search_definition = {"mappings": {"dynamic": False}} | ||
implicit_search_resp = coll0.create_search_index( | ||
model={"name": _NAME + "-implicit", "definition": search_definition} |
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.
can you test adding a comment
to this call too?
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.
Done
test/test_index_management.py
Outdated
self.assertEqual(event.command["comment"], "foo") | ||
|
||
|
||
class TestSearchIndexProse(TestSearchIndexIntegration): |
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.
If this subclasses TestSearchIndexIntegration then won't test_comment_field accidentally run twice?
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.
Created a new base class
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
No description provided.