def gen_data_sdk_old(mocker): sdk_old = ToucanDataSdk( instance_url='https://api-myinstance.toucantoco.com/demo', auth=('', '') ) sdk_old.client = gen_client(mocker) yield sdk_old if os.path.exists(sdk_old.EXTRACTION_CACHE_PATH): shutil.rmtree(sdk_old.EXTRACTION_CACHE_PATH)
def gen_data_sdk_error(mocker): sdk = ToucanDataSdk('some_url', small_app='demo', auth=('', '')) sdk.client = gen_client_error(mocker) yield sdk if os.path.exists(sdk.EXTRACTION_CACHE_PATH): shutil.rmtree(sdk.EXTRACTION_CACHE_PATH)
def gen_data_sdk(mocker): sdk = ToucanDataSdk('some_url', auth=('', '')) sdk.client = gen_client(mocker) yield sdk if os.path.exists(ToucanDataSdk.EXTRACTION_CACHE_PATH): shutil.rmtree(ToucanDataSdk.EXTRACTION_CACHE_PATH)