diff options
-rw-r--r-- | tests/test_caldav.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_caldav.py b/tests/test_caldav.py index bd822ad..974b3b8 100644 --- a/tests/test_caldav.py +++ b/tests/test_caldav.py @@ -1397,10 +1397,10 @@ class RepeatedFunctionalTestsBaseClass(object): # add event e1 = c.save_event(ev1) - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): t1 = c.save_todo(todo) assert_not_equal(e1.url, None) - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): assert_not_equal(t1.url, None) if not self.check_compatibility_flag('event_by_url_is_broken'): assert_equal(c.event_by_url(e1.url).url, e1.url) @@ -1410,19 +1410,19 @@ class RepeatedFunctionalTestsBaseClass(object): ## (but some calendars may throw a "409 Conflict") if not self.check_compatibility_flag('no_overwrite'): e2 = c.save_event(ev1) - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): t2 = c.save_todo(todo) ## add same event with "no_create". Should work like a charm. e2 = c.save_event(ev1, no_create=True) - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): t2 = c.save_todo(todo, no_create=True) ## this should also work. e2.instance.vevent.summary.value = e2.instance.vevent.summary.value + '!' e2.save(no_create=True) - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): t2.instance.vtodo.summary.value = t2.instance.vtodo.summary.value + '!' t2.save(no_create=True) @@ -1433,12 +1433,12 @@ class RepeatedFunctionalTestsBaseClass(object): ## "no_overwrite" should throw a ConsistencyError assert_raises(error.ConsistencyError, c.save_event, ev1, no_overwrite=True) - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): assert_raises(error.ConsistencyError, c.save_todo, todo, no_overwrite=True) # delete event e1.delete() - if not self.check_compatibility_flag('no_todo'): + if not self.check_compatibility_flag('no_todo') and not self.check_compatibility_flag('no_todo_on_standard_calendar'): t1.delete # Verify that we can't look it up, both by URL and by ID |