def tearDown(self): db_client = data_retrieval.get_db() import bson.objectid db_client.db[config.MONGO_TIMESERIES_DB]['download_mock_series'].remove( {'_id': bson.objectid.ObjectId(self.cache_id)}) self.mongo_service.stop() cache_file = data_retrieval.get_cache_filename(self.cache_id) if os.path.exists(cache_file): os.remove(cache_file) config.MONGO_FOLDER = self.restore_mongo_folder config.MONGO_DB = self.restore_db
def tearDown(self): cache_file = data_retrieval.get_cache_filename(self.cache_id) if os.path.exists(cache_file): os.remove(cache_file) config.CACHE_FOLDER = self.restore_cache_folder