Skip to content

Commit

Permalink
Misc improvements/fixes to the tests (#259)
Browse files Browse the repository at this point in the history
* the child-parent-test failed on some servers due to missig dtend

* ah ... bad cut'n'paste, we're creating a calendar that should only accept journal entries, then we try to put events there ...

* apparently, zimbra ignores attempts to set relation ships attributes

* fixup! apparently, zimbra ignores attempts to set relation ships attributes
  • Loading branch information
tobixen authored Jan 16, 2023
1 parent 54e0785 commit 0a50914
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/compatibility_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@
"""when querying for the current user principal property, server doesn't report anything useful""",

'read_only':
"""The calendar server does not support PUT, POST, DELETE, PROPSET, MKCALENDAR, etc"""
"""The calendar server does not support PUT, POST, DELETE, PROPSET, MKCALENDAR, etc""",

'no_relships':
"""The calendar server does not support child/parent relationships between calendar components""",
}

xandikos = [
Expand Down Expand Up @@ -245,6 +248,7 @@
'vtodo_datesearch_notime_task_is_skipped',
'category_search_yields_nothing',
'text_search_is_exact_match_only',
'no_relships',

## extra features not specified in RFC5545
"calendar_order",
Expand Down
6 changes: 5 additions & 1 deletion tests/test_caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -1320,18 +1320,22 @@ def testSearchTodos(self):

def testCreateChildParent(self):
self.skip_on_compatibility_flag("read_only")
c = self._fixCalendar(supported_calendar_component_set=["VJOURNAL"])
self.skip_on_compatibility_flag("no_relships")
c = self._fixCalendar(supported_calendar_component_set=["VEVENT"])
parent = c.save_event(
dtstart=datetime(2022, 12, 26, 19, 15),
dtend=datetime(2022, 12, 26, 20, 00),
summary="this is a parent event test",
)
child = c.save_event(
dtstart=datetime(2022, 12, 26, 19, 17),
dtend=datetime(2022, 12, 26, 20, 00),
summary="this is a child event test",
parent=[parent.id],
)
grandparent = c.save_event(
dtstart=datetime(2022, 12, 26, 19, 00),
dtend=datetime(2022, 12, 26, 20, 00),
summary="this is a grandparent event test",
child=[parent.id],
)
Expand Down

0 comments on commit 0a50914

Please sign in to comment.