Skip to content

Commit 39a3d48

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

File tree

16 files changed

+27
-30
lines changed

16 files changed

+27
-30
lines changed

README.md

Lines changed: 2 additions & 8 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)