Esempio n. 1
0
    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()
Esempio n. 2
0
    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()