def setUp(self):
     self.h = get_client()
     ws = self.h.get_workspaces()
     ws0 = ws[0]
     self.project = self.h.create_project(ws0, "Test Project 1")
     ds = self.project.create_dataset("ds")
     self.image = self.project.upload_from_url(ds, "tmp1.jpg", img_url,
                                               True)
Exemple #2
0
 def setUp(self):
     self.h = get_client()
     ws = self.h.get_workspaces()
     ws0 = ws[0]
     self.project = self.h.create_project(ws0, "Test Project 1")
 def setUp(self):
     self.h = get_client()
     projects = self.h.get_projects()
     for p in projects:
         p.delete()
Exemple #4
0
 def setUp(self):
     self.h = get_client()
     ws = self.h.get_workspaces()
     ws0 = ws[0]
     self.project = self.h.create_project(ws0, "Test Project 1")
     urllib.request.urlretrieve(img_url, "image.jpg")