Fixed tests regarding new WebDAV sync responses
parent
d2b739d261
commit
744610dbe1
|
@ -110,7 +110,7 @@ class DAVCalendarSuperUserAclTest(unittest.TestCase):
|
||||||
["{urn:ietf:params:xml:ns:caldav}calendar-data"])
|
["{urn:ietf:params:xml:ns:caldav}calendar-data"])
|
||||||
self.client.execute(sync_query)
|
self.client.execute(sync_query)
|
||||||
if sync_query.response["status"] != 404:
|
if sync_query.response["status"] != 404:
|
||||||
event = self._calendarDataInMultistatus(sync_query, "{DAV:}sync-response")
|
event = self._calendarDataInMultistatus(sync_query, "{DAV:}response")
|
||||||
|
|
||||||
return event
|
return event
|
||||||
|
|
||||||
|
@ -581,7 +581,7 @@ class DAVCalendarAclTest(DAVAclTest):
|
||||||
self.subscriber_client.execute(sync_query)
|
self.subscriber_client.execute(sync_query)
|
||||||
if sync_query.response["status"] != 404:
|
if sync_query.response["status"] != 404:
|
||||||
event = self._calendarDataInMultistatus(sync_query, url,
|
event = self._calendarDataInMultistatus(sync_query, url,
|
||||||
"{DAV:}sync-response")
|
"{DAV:}response")
|
||||||
|
|
||||||
return event
|
return event
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ def changedItemsFromCollection(client, collection, synctoken=None):
|
||||||
doc = syncquery.response["document"]
|
doc = syncquery.response["document"]
|
||||||
|
|
||||||
# extract all hrefs
|
# extract all hrefs
|
||||||
for syncResponse in doc.iter("{DAV:}sync-response"):
|
for syncResponse in doc.iter("{DAV:}response"):
|
||||||
href = syncResponse.find("{DAV:}href")
|
href = syncResponse.find("{DAV:}href")
|
||||||
if href is not None:
|
if href is not None:
|
||||||
hrefs.append(href.text)
|
hrefs.append(href.text)
|
||||||
|
|
Loading…
Reference in New Issue