示例#1
0
文件: base.py 项目: girder/girder
    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()
示例#2
0
文件: base.py 项目: tymiao1220/girder
    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()