Cleanup collections faster than drop_collection.
(self, *collections)
| 1170 | self.credentials = {} |
| 1171 | |
| 1172 | def cleanup_colls(self, *collections): |
| 1173 | """Cleanup collections faster than drop_collection.""" |
| 1174 | for c in collections: |
| 1175 | c = self.client[c.database.name][c.name] |
| 1176 | c.delete_many({}) |
| 1177 | c.drop_indexes() |
| 1178 | |
| 1179 | def patch_system_certs(self, ca_certs): |
| 1180 | patcher = SystemCertsPatcher(ca_certs) |