Exemplo n.º 1
0
 def setUpClass(cls):
     super(TestSharePointFolder, cls).setUpClass()
     cls.target_list = ensure_list(cls.client.web,
                                   ListCreationInformation(
                                       "Documents %s" % random_seed,
                                       None,
                                       ListTemplateType.DocumentLibrary))
 def setUpClass(cls):
     super(TestSPView, cls).setUpClass()
     cls.target_list = ensure_list(
         cls.client.web,
         ListCreationInformation("Tasks", None, ListTemplateType.Tasks))
     cls.target_view_title = "My Tasks %s" % random_seed
     cls.target_view_title_updated = cls.target_view_title + "_updated"
 def setUpClass(cls):
     super(TestListItemAttachment, cls).setUpClass()
     cls.target_list = ensure_list(
         cls.client.web,
         ListCreationInformation("Tasks", None, ListTemplateType.Tasks))
     item_properties = {'Title': 'Approval Task'}
     cls.target_item = cls.target_list.add_item(item_properties)
     cls.client.execute_query()
 def setUpClass(cls):
     super(TestSharePointListItem, cls).setUpClass()
     cls.target_list = ensure_list(
         cls.client.web,
         ListCreationInformation("Tasks", None, ListTemplateType.Tasks))
     cls.target_item_properties = {
         "Title": "Task %s" % random_seed,
         "Id": None
     }