Skip to content

Commit 4ade0e5

Browse files
committed
breaking: adjusting API usage from caldav v2 to caldav v3
1 parent 1e46a85 commit 4ade0e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/caldav_server_tester/checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def _run_check(self) -> None:
942942
try:
943943
my_name = principal.get_display_name()
944944
if my_name:
945-
my_principals = client.principals(name=my_name)
945+
my_principals = client.search_principals(name=my_name)
946946
if isinstance(my_principals, list) and len(my_principals) == 1:
947947
if my_principals[0].url == principal.url:
948948
self.set_feature("principal-search.by-name", True)
@@ -975,7 +975,7 @@ def _run_check(self) -> None:
975975

976976
## List all principals
977977
try:
978-
all_principals = client.principals()
978+
all_principals = client.search_principals()
979979
## Some servers return empty list, some return principals
980980
## We know there exists at least one principal (self)
981981
if isinstance(all_principals, list) and len(all_principals)>0:

0 commit comments

Comments
 (0)