Beispiel #1
0
 def get_resource(link):
     # type: (Text) -> VGResource
     logger.debug("get_resource({0}) call".format(link))
     response = self.eyes_connector.download_resource(link)
     return VGResource.from_response(link,
                                     response,
                                     on_created=handle_resources)
Beispiel #2
0
 def get_resource(link):
     # type: (Text) -> VGResource
     if link.startswith("data:"):
         # resource already in blob
         return VGResource.EMPTY(link)
     response = self.eyes_connector.download_resource(link)
     return VGResource.from_response(link,
                                     response,
                                     on_created=handle_resources)
Beispiel #3
0
 def get_resource(link):
     # type: (Text) -> VGResource
     response = self.eyes_connector.download_resource(link)
     return VGResource.from_response(link, response)
 def get_resource(link):
     logger.debug("get_resource({0}) call".format(link))
     response = eyes_connector.download_resource(link)
     return VGResource.from_response(link, response, find_child_resource_urls)
 def get_resource(link):
     logger.debug("get_resource({0}) call".format(link))
     matching_cookies = [c for c in cookies if is_cookie_for_url(c, link)]
     response = eyes_connector.download_resource(link, matching_cookies)
     return VGResource.from_response(link, response,
                                     find_child_resource_urls)