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

Method test_aggregate

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

Source from the content-addressed store, hash-verified

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)
144 self.assertCollationInLastCommand()
145
146 def test_count_documents(self):
147 self.db.test.count_documents({}, collation=self.collation)

Callers

nothing calls this directly

Calls 2

aggregateMethod · 0.45

Tested by

no test coverage detected