(cls)
| 277 | |
| 278 | @classmethod |
| 279 | def _drop_collections(cls): |
| 280 | # XXX: Explicitly drop all the collections. Otherwise, artifacts are left over in |
| 281 | # subsequent tests. |
| 282 | # See: https://github.com/MongoEngine/mongoengine/issues/566 |
| 283 | # See: https://github.com/MongoEngine/mongoengine/issues/565 |
| 284 | |
| 285 | # NOTE: In older MongoDB versions you needed to drop all the collections prior to dropping |
| 286 | # the database - that's not needed anymore with the WiredTiger engine |
| 287 | |
| 288 | # for model in ALL_MODELS: |
| 289 | # model.drop_collection() |
| 290 | return |
| 291 | |
| 292 | |
| 293 | class DbTestCase(BaseDbTestCase): |
no outgoing calls
no test coverage detected