def tearDown(self): """ Stop any services that we started just for this test. """ # If "self.setUp" is overridden, "self.assetstoreType" may not be set if getattr(self, 'assetstoreType', None) in ('gridfsrs', 'gridfsshard'): mongo_replicaset.stopMongoReplicaSet(self.replicaSetConfig) # Invalidate cache regions which persist across tests cache.invalidate() requestCache.invalidate()
def tearDown(self): """ Stop any services that we started just for this test. """ # If "self.setUp" is overridden, "self.assetstoreType" may not be set if getattr(self, 'assetstoreType', None) == 'gridfsrs': mongo_replicaset.stopMongoReplicaSet(self.replicaSetConfig) # Invalidate cache regions which persist across tests cache.invalidate() requestCache.invalidate()