MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_case_5

Method test_case_5

test/test_index_management.py:265–271  ·  view source on GitHub ↗

``dropSearchIndex`` suppresses namespace not found errors.

(self)

Source from the content-addressed store, hash-verified

263 self.assertEqual(index["latestDefinition"], model2["definition"])
264
265 def test_case_5(self):
266 """``dropSearchIndex`` suppresses namespace not found errors."""
267 # Create a driver-side collection object for a randomly generated collection name. Do not create this collection on the server.
268 coll0 = self.db[f"col{uuid.uuid4()}"]
269
270 # Run a ``dropSearchIndex`` command and assert that no error is thrown.
271 coll0.drop_search_index("foo")
272
273 def test_case_6(self):
274 """Driver can successfully create and list search indexes with non-default readConcern and writeConcern."""

Callers

nothing calls this directly

Calls 1

drop_search_indexMethod · 0.45

Tested by

no test coverage detected