コード例 #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()