(self)
| 578 | db.test.find().min({"j": 10}) # type: ignore[arg-type] |
| 579 | |
| 580 | def test_min_max_without_hint(self): |
| 581 | coll = self.db.test |
| 582 | j_index = [("j", ASCENDING)] |
| 583 | coll.create_index(j_index) |
| 584 | |
| 585 | with self.assertRaises(InvalidOperation): |
| 586 | coll.find().min([("j", 3)]).to_list() |
| 587 | with self.assertRaises(InvalidOperation): |
| 588 | coll.find().max([("j", 3)]).to_list() |
| 589 | |
| 590 | def test_batch_size(self): |
| 591 | db = self.db |
nothing calls this directly
no test coverage detected