mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-08 01:45:08 +00:00
Fixed tests regarding new WebDAV sync responses
This commit is contained in:
@@ -110,7 +110,7 @@ class DAVCalendarSuperUserAclTest(unittest.TestCase):
|
||||
["{urn:ietf:params:xml:ns:caldav}calendar-data"])
|
||||
self.client.execute(sync_query)
|
||||
if sync_query.response["status"] != 404:
|
||||
event = self._calendarDataInMultistatus(sync_query, "{DAV:}sync-response")
|
||||
event = self._calendarDataInMultistatus(sync_query, "{DAV:}response")
|
||||
|
||||
return event
|
||||
|
||||
@@ -581,7 +581,7 @@ class DAVCalendarAclTest(DAVAclTest):
|
||||
self.subscriber_client.execute(sync_query)
|
||||
if sync_query.response["status"] != 404:
|
||||
event = self._calendarDataInMultistatus(sync_query, url,
|
||||
"{DAV:}sync-response")
|
||||
"{DAV:}response")
|
||||
|
||||
return event
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ def changedItemsFromCollection(client, collection, synctoken=None):
|
||||
doc = syncquery.response["document"]
|
||||
|
||||
# extract all hrefs
|
||||
for syncResponse in doc.iter("{DAV:}sync-response"):
|
||||
for syncResponse in doc.iter("{DAV:}response"):
|
||||
href = syncResponse.find("{DAV:}href")
|
||||
if href is not None:
|
||||
hrefs.append(href.text)
|
||||
|
||||
Reference in New Issue
Block a user