def delete_fileshare(): """Delete a fileshare""" hook = AzureFileShareHook() hook.delete_share(NAME)
def test_delete_share(self, mock_service): mock_instance = mock_service.return_value hook = AzureFileShareHook(wasb_conn_id='wasb_test_sas_token') hook.delete_share('my_share') mock_instance.delete_share.assert_called_once_with('my_share')
def delete_share(cls, share_name: str, wasb_conn_id: str): hook = AzureFileShareHook(wasb_conn_id=wasb_conn_id) hook.delete_share(share_name)