summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2022-03-09 18:27:36 +0100
committerTobias Brox <tobias@redpill-linpro.com>2022-03-09 18:27:36 +0100
commit872232e392e6b6fd7e5d07bbfbf7c3d27fca9de9 (patch)
treea8a7ef8e1753e228a11676cb4359ad49ce106c66
parentb4ef15d8187d097814e137ca0932b3eb7755e329 (diff)
downloadpython-caldav-872232e392e6b6fd7e5d07bbfbf7c3d27fca9de9.zip
bugfix in test code - 'no_todo' wasn't honored at one point
-rw-r--r--tests/test_caldav.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_caldav.py b/tests/test_caldav.py
index 86c5276..e1a9aac 100644
--- a/tests/test_caldav.py
+++ b/tests/test_caldav.py
@@ -1399,7 +1399,8 @@ class RepeatedFunctionalTestsBaseClass(object):
if not self.check_compatibility_flag('no_todo'):
t1 = c.save_todo(todo)
assert_not_equal(e1.url, None)
- assert_not_equal(t1.url, None)
+ if not self.check_compatibility_flag('no_todo'):
+ 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)
assert_equal(c.event_by_uid(e1.id).url, e1.url)
@@ -1719,6 +1720,9 @@ class TestLocalXandikos(RepeatedFunctionalTestsBaseClass):
def setup(self):
if not test_xandikos:
raise SkipTest("Skipping Xadikos test due to configuration")
+
+ ## TODO: https://github.com/jelmer/xandikos/issues/131#issuecomment-1054805270 suggests a simpler way to launch the xandikos server
+
self.serverdir = tempfile.TemporaryDirectory()
self.serverdir.__enter__()
## Most of the stuff below is cargo-cult-copied from xandikos.web.main