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(TestSharePointFile, cls).setUpClass() cls.target_list = ensure_list(cls.client.web, ListCreationInformation( "Archive Documents N%s" % random_seed, None, ListTemplateType.DocumentLibrary))
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 }