MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_create_index

Method test_create_index

test/test_collation.py:137–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 self.assertEqual(self.collation.document, model.document["collation"])
136
137 def test_create_index(self):
138 self.db.test.create_index("foo", collation=self.collation)
139 ci_cmd = self.listener.started_events[0].command
140 self.assertEqual(self.collation.document, ci_cmd["indexes"][0]["collation"])
141
142 def test_aggregate(self):
143 self.db.test.aggregate([{"$group": {"_id": 42}}], collation=self.collation)

Callers

nothing calls this directly

Calls 1

create_indexMethod · 0.45

Tested by

no test coverage detected