Skip to content

Commit

Permalink
Fixing ftests and compatibility matrix
Browse files Browse the repository at this point in the history
* quite some bugfixes in latest releases of davical,
  most of the incompatibility notices are obsoleted.
* found an incompatibility in Posteo.
* found a bug in the test code
  • Loading branch information
tobixen committed Dec 30, 2023
1 parent 0581b94 commit eb22b33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 2 additions & 4 deletions tests/compatibility_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,7 @@
#'no_journal', ## it threw a 500 internal server error! ## for old versions
#'nofreebusy', ## for old versions
'fragile_sync_tokens', ## no issue raised yet
'vtodo_datesearch_nodtstart_task_is_skipped_in_closed_date_range', ## no issue raised yet
'isnotdefined_not_working', ## https://gitlab.com/davical-project/davical/-/issues/281
'fastmail_buggy_noexpand_date_search', ## https://gitlab.com/davical-project/davical/-/issues/280
"isnotdefined_not_working",
'vtodo_datesearch_nodtstart_task_is_skipped', ## no issue raised yet
]

google = [
Expand Down Expand Up @@ -387,6 +384,7 @@
'no_journal',
'no_recurring_todo',
'no_sync_token',
'combined_search_not_working'
]


Expand Down
11 changes: 3 additions & 8 deletions tests/test_caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,15 +1297,10 @@ def testSearchEvent(self):
start=datetime(2006, 7, 13, 13, 0),
end=datetime(2006, 7, 15, 13, 0),
)
if not self.check_compatibility_flag(
if (not self.check_compatibility_flag(
"category_search_yields_nothing"
) and not self.check_compatibility_flag("combined_search_not_working"):
if self.check_compatibility_flag("fastmail_buggy_noexpand_date_search"):
## fastmail and davical delivers too many recurring events on a date search
## (but fastmail anyway won't get here, as combined search is not working with fastmail)
assert len(no_events) == 1
else:
assert len(no_events) == 1
) and not self.check_compatibility_flag("combined_search_not_working")):
assert len(no_events) == 0
some_events = c.search(
comp_class=Event,
category="PERSONAL",
Expand Down

0 comments on commit eb22b33

Please sign in to comment.