MCPcopy Create free account
hub / github.com/StackStorm/st2 / _drop_collections

Method _drop_collections

st2tests/st2tests/base.py:279–290  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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
293class DbTestCase(BaseDbTestCase):

Callers 2

_drop_dbMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected