diff --git a/.lychee.toml b/.lychee.toml index db6df0c..2dc676f 100644 --- a/.lychee.toml +++ b/.lychee.toml @@ -7,4 +7,6 @@ exclude = [ ".*some\\.davical\\.server.*", # External site with expired SSL certificate (not under our control) ".*bedework\\.org.*", + # xandikos.org returns intermittent 5xx errors (not under our control) + ".*xandikos\\.org.*", ] diff --git a/CHANGELOG.md b/CHANGELOG.md index 9263140..00731ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,8 @@ and I do try to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.h ### Added -* Added possibility to add calendar name and calendar url to the template. Ref https://github.com/tobixen/plann/issues/14 by @rjolina at github. -* `now` should be an acceptable timestamp. Ref https://github.com/tobixen/plann/issues/16 +* Added possibility to add calendar name and calendar url to the template. Ref https://github.com/pycalendar/plann/issues/14 by @rjolina at github. +* `now` should be an acceptable timestamp. Ref https://github.com/pycalendar/plann/issues/16 ### Changed @@ -16,7 +16,7 @@ and I do try to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.h ### Fixed -* `--help` had some wrong information, ref https://github.com/tobixen/plann/issues/16 by Thomas Maeder +* `--help` had some wrong information, ref https://github.com/pycalendar/plann/issues/16 by Thomas Maeder ## [v1.0.0] - 2024-12-01 diff --git a/tests/test_functional.py b/tests/test_functional.py index 4615081..ff65445 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -14,7 +14,12 @@ import aiohttp import aiohttp.web import niquests as requests -from xandikos.web import XandikosApp, XandikosBackend +from xandikos.web import XandikosApp + +try: + from xandikos.web import SingleUserFilesystemBackend as XandikosBackend +except ImportError: + from xandikos.web import XandikosBackend # type: ignore[no-redef] from plann.cli import _add_journal, _add_todo, _check_for_panic, _list, _select from plann.interactive import ( @@ -204,8 +209,11 @@ def dag(obj, reltype, observed=None): ## Journal tests _add_journal(ctx, summary=['bought new keyboard'], set_dtstart='2012-12-20') - _select(ctx, journal=True) - assert len(ctx.obj['objs'])==1 + try: + _select(ctx, journal=True) + assert len(ctx.obj['objs'])==1 + except NotImplementedError: + pass ## xandikos does not support CalDAV journal search _select(ctx, todo=True) assert len(ctx.obj['objs'])==2 _select(ctx, event=True) @@ -312,6 +320,9 @@ def dag(obj, reltype, observed=None): assert len(ctx.obj['objs'])==4 ## Reset ... let's connect todo1 and todo2 again, and remove events + ## Reload to get fresh ETags after _check_for_panic modified these objects + todo1.load() + todo2.load() _adjust_relations(todo1, {todo2}) _adjust_relations(todo2, set()) todo1.load()