diff --git a/exchangelib/folders/__init__.py b/exchangelib/folders/__init__.py index 80d2f8d4..4d56d1e7 100644 --- a/exchangelib/folders/__init__.py +++ b/exchangelib/folders/__init__.py @@ -23,7 +23,7 @@ CalendarLogging, CalendarSearchCache, CommonViews, - Companies, + CompanyContacts, Conflicts, Contacts, ConversationHistory, @@ -139,7 +139,7 @@ "CalendarLogging", "CalendarSearchCache", "CommonViews", - "Companies", + "CompanyContacts", "Conflicts", "Contacts", "ConversationHistory", diff --git a/exchangelib/folders/base.py b/exchangelib/folders/base.py index 89f2c314..a8b5647a 100644 --- a/exchangelib/folders/base.py +++ b/exchangelib/folders/base.py @@ -247,7 +247,7 @@ def folder_cls_from_container_class(container_class): from .known_folders import ( ApplicationData, Calendar, - Companies, + CompanyContacts, Contacts, ConversationSettings, CrawlerData, @@ -270,7 +270,7 @@ def folder_cls_from_container_class(container_class): for folder_cls in ( ApplicationData, Calendar, - Companies, + CompanyContacts, Contacts, ConversationSettings, CrawlerData, diff --git a/exchangelib/folders/known_folders.py b/exchangelib/folders/known_folders.py index 979abd72..94cd379f 100644 --- a/exchangelib/folders/known_folders.py +++ b/exchangelib/folders/known_folders.py @@ -136,7 +136,7 @@ def view(self, *args, **kwargs): return FolderCollection(account=self.account, folders=[self]).view(*args, **kwargs) -class Companies(WellknownFolder): +class CompanyContacts(WellknownFolder): DISTINGUISHED_FOLDER_ID = "companycontacts" CONTAINER_CLASS = "IPF.Contact.Company" supported_item_models = CONTACT_ITEM_CLASSES @@ -762,7 +762,7 @@ class WorkingSet(NonDeletableFolder): AllItems, AllPersonMetadata, Calendar, - Companies, + CompanyContacts, Conflicts, Contacts, ConversationHistory, diff --git a/tests/test_folder.py b/tests/test_folder.py index d2fc4d22..13556afa 100644 --- a/tests/test_folder.py +++ b/tests/test_folder.py @@ -34,7 +34,7 @@ Calendar, CalendarSearchCache, CommonViews, - Companies, + CompanyContacts, Contacts, ConversationSettings, CrawlerData, @@ -553,7 +553,7 @@ def test_folder_grouping(self): self.assertEqual(f.folder_class, "IPF.StoreItem.Signal") elif isinstance(f, PdpProfileV2Secured): self.assertEqual(f.folder_class, "IPF.StoreItem.PdpProfileSecured") - elif isinstance(f, Companies): + elif isinstance(f, CompanyContacts): self.assertEqual(f.folder_class, "IPF.Contact.Company") elif isinstance(f, OrganizationalContacts): self.assertEqual(f.folder_class, "IPF.Contact.OrganizationalContacts")