Skip to content

Commit 39a3d48

Browse files
vvgrem@gmail.comvvgrem@gmail.com
vvgrem@gmail.com
authored and
vvgrem@gmail.com
committed
v 2.2.1
1 parent 46dba3d commit 39a3d48

16 files changed

+27
-30
lines changed

README.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ pip install Office365-REST-Python-Client
2727

2828
### Note
2929
>
30-
>Since PyPI default index `Office365-REST-Python-Client` has not been updated for a while
31-
> and the last version available from index is already considered _outdated_,
32-
>prefer nowadays an _alternative_ index instead to install the _latest_ version:
33-
>
34-
>```
35-
>pip install office365-rest-client
36-
>```
37-
>Alternatively the _latest_ version could be installed directly via GitHub:
30+
31+
>Alternatively the _latest_ version could be directly installed via GitHub:
3832
>```
3933
>pip install git+https://github.com/vgrem/Office365-REST-Python-Client.git
4034
>```

office365/directory/group.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22

3-
from office365.directory.directoryObjectCollection import DirectoryObjectCollection
43
from office365.directory.directoryObject import DirectoryObject
4+
from office365.directory.directoryObjectCollection import DirectoryObjectCollection
55
from office365.onedrive.driveCollection import DriveCollection
66
from office365.onedrive.siteCollection import SiteCollection
77
from office365.runtime.http.http_method import HttpMethod

office365/onedrive/driveItem.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from office365.onedrive.conflictBehavior import ConflictBehavior
66
from office365.onedrive.driveItemVersionCollection import DriveItemVersionCollection
77
from office365.onedrive.file import File
8-
from office365.onedrive.fileSystemInfo import FileSystemInfo
98
from office365.onedrive.file_upload import ResumableFileUpload
9+
from office365.onedrive.fileSystemInfo import FileSystemInfo
1010
from office365.onedrive.folder import Folder
1111
from office365.onedrive.listItem import ListItem
1212
from office365.onedrive.publicationFacet import PublicationFacet
@@ -337,7 +337,7 @@ def set_property(self, name, value, persist_changes=True):
337337
self._resource_path = ResourcePath(
338338
value,
339339
ResourcePath("items", self._parent_collection.resource_path.parent.parent))
340-
#elif name == "id" and self._resource_path.parent.segment == "root":
340+
# elif name == "id" and self._resource_path.parent.segment == "root":
341341
# self._resource_path = ResourcePath(value,
342342
# ResourcePath("items", self._resource_path.parent.parent))
343343
return self

office365/sharepoint/contenttypes/content_type_collection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_by_id(self, contentTypeId):
2222
def add(self, content_type_info):
2323
"""Adds a new content type to the collection and returns a reference to the added SP.ContentType.
2424
25-
:param office365.sharepoint.contenttypes.contentTypeCreationInformation.ContentTypeCreationInformation content_type_info: Specifies properties that is to be used to
25+
:param ContentTypeCreationInformation content_type_info: Specifies properties that is to be used to
2626
construct the new content type.
2727
2828
"""

tests/directory/test_user.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from tests import random_seed
33
from tests.graph_case import GraphTestCase
44

5-
from office365.directory.userProfile import UserProfile
65
from office365.directory.user import User
6+
from office365.directory.userProfile import UserProfile
77

88

99
class TestGraphUser(GraphTestCase):

tests/onedrive/test_driveItem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_12_copy_file(self):
9191
self.client.execute_query()
9292
self.assertIsNotNone(result.value)
9393

94-
#def test_13_move_file(self):
94+
# def test_13_move_file(self):
9595
# target_folder = self.__class__.target_folder.parentReference
9696

9797
# file_name = "Moved_{0}_SharePoint User Guide.docx".format(uuid.uuid4().hex)

tests/onedrive/test_permissions.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import uuid
22

3+
from tests.graph_case import GraphTestCase
4+
35
from office365.directory.permission import Permission
46
from office365.onedrive.driveItem import DriveItem
5-
from tests.graph_case import GraphTestCase
67

78

89
class TestPermissions(GraphTestCase):

tests/sharepoint/test_contenttype.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from random import randint
22

3-
from office365.sharepoint.changes.change_query import ChangeQuery
43
from tests.sharepoint.sharepoint_case import SPTestCase
54

5+
from office365.sharepoint.changes.change_query import ChangeQuery
66
from office365.sharepoint.contenttypes.content_type import ContentType
77
from office365.sharepoint.contenttypes.content_type_collection import ContentTypeCollection
88
from office365.sharepoint.contenttypes.contentTypeCreationInformation import ContentTypeCreationInformation

tests/sharepoint/test_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22

3-
from office365.sharepoint.changes.change_query import ChangeQuery
43
from tests import random_seed
54
from tests.sharepoint.sharepoint_case import SPTestCase
65

6+
from office365.sharepoint.changes.change_query import ChangeQuery
77
from office365.sharepoint.files.file import File
88
from office365.sharepoint.lists.list import List
99
from office365.sharepoint.lists.list_creation_information import ListCreationInformation

tests/sharepoint/test_folder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from random import randint
22

3-
from office365.sharepoint.changes.change_collection import ChangeCollection
4-
from office365.sharepoint.changes.change_query import ChangeQuery
53
from tests import random_seed
64
from tests.sharepoint.sharepoint_case import SPTestCase
75

6+
from office365.sharepoint.changes.change_collection import ChangeCollection
7+
from office365.sharepoint.changes.change_query import ChangeQuery
88
from office365.sharepoint.files.move_operations import MoveOperations
99
from office365.sharepoint.folders.folder import Folder
1010
from office365.sharepoint.lists.list import List

tests/sharepoint/test_list.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from random import randint
22

3+
from tests.sharepoint.sharepoint_case import SPTestCase
4+
35
from office365.sharepoint.lists.list import List
46
from office365.sharepoint.lists.list_creation_information import ListCreationInformation
57
from office365.sharepoint.lists.list_template_type import ListTemplateType
68
from office365.sharepoint.permissions.basePermissions import BasePermissions
79
from office365.sharepoint.sharing.roleType import RoleType
8-
from tests.sharepoint.sharepoint_case import SPTestCase
910

1011

1112
class TestSPList(SPTestCase):
@@ -108,7 +109,7 @@ def test_14_get_list_changes(self):
108109
changes = self.__class__.target_list.get_changes().execute_query()
109110
self.assertGreater(len(changes), 0)
110111

111-
#def test_15_get_checked_out_files(self):
112+
# def test_15_get_checked_out_files(self):
112113
# result = self.__class__.target_list.get_checked_out_files().execute_query()
113114
# self.assertIsNotNone(result.resource_path)
114115

tests/sharepoint/test_recycle_bin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from random import randint
22

3+
from tests.sharepoint.sharepoint_case import SPTestCase
4+
35
from office365.sharepoint.files.file import File
46
from office365.sharepoint.recyclebin.recycleBinItemCollection import RecycleBinItemCollection
5-
from tests.sharepoint.sharepoint_case import SPTestCase
67

78

89
class TestSharePointRecycleBin(SPTestCase):

tests/sharepoint/test_user.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from office365.sharepoint.changes.change_query import ChangeQuery
2-
from office365.sharepoint.principal.user import User
31
from settings import settings
42
from tests.sharepoint.sharepoint_case import SPTestCase
53

4+
from office365.sharepoint.changes.change_query import ChangeQuery
65
from office365.sharepoint.permissions.basePermissions import BasePermissions
6+
from office365.sharepoint.principal.user import User
77

88

99
class TestSharePointUser(SPTestCase):

tests/sharepoint/test_view.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from office365.sharepoint.changes.change_query import ChangeQuery
2-
from office365.sharepoint.views.view import View
31
from tests import random_seed
42
from tests.sharepoint.sharepoint_case import SPTestCase
53

4+
from office365.sharepoint.changes.change_query import ChangeQuery
65
from office365.sharepoint.lists.list import List
76
from office365.sharepoint.lists.list_creation_information import ListCreationInformation
87
from office365.sharepoint.lists.list_template_type import ListTemplateType
8+
from office365.sharepoint.views.view import View
99
from office365.sharepoint.views.view_create_information import ViewCreationInformation
1010

1111

tests/teams/test_apps.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import uuid
22

3-
from office365.teams.team import Team
43
from tests.graph_case import GraphTestCase
54

5+
from office365.teams.team import Team
6+
67

78
class TestTeamApps(GraphTestCase):
89
"""Tests for team Apps"""

tests/teams/test_channel.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import uuid
22

3-
from office365.teams.itemBody import ItemBody
4-
from office365.teams.team import Team
53
from tests.graph_case import GraphTestCase
64

7-
85
from office365.teams.channel import Channel
96
from office365.teams.chatMessage import ChatMessage
7+
from office365.teams.itemBody import ItemBody
8+
from office365.teams.team import Team
109

1110

1211
class TestGraphChannel(GraphTestCase):

0 commit comments

Comments
 (0)