Skip to content

Commit 2f16cf9

Browse files
tobixenclaude
andcommitted
ci: fix xandikos test server
Newer xandikos versions renamed XandikosBackend to SingleUserFilesystemBackend. Use a try/except fallback matching the approach already used in the caldav library's testing.py. prompt: The github checks failed on PR33, please investigate. Note that another branch is currently checked out, so either wait editing any files or create a separate worktree. [follow-up] The tests fail locally also. The code for setting up the xandikos test server does not work with the latest xandikos versions. Check ~/caldav on how things are done there. [follow-up] This fix should probably go in as a separate pull request, forked off the main branch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3cb38a1 commit 2f16cf9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎tests/test_functional.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
import aiohttp
1515
import aiohttp.web
1616
import niquests as requests
17-
from xandikos.web import XandikosApp, XandikosBackend
17+
from xandikos.web import XandikosApp
18+
19+
try:
20+
from xandikos.web import SingleUserFilesystemBackend as XandikosBackend
21+
except ImportError:
22+
from xandikos.web import XandikosBackend # type: ignore[no-redef]
1823

1924
from plann.cli import _add_journal, _add_todo, _check_for_panic, _list, _select
2025
from plann.interactive import (

0 commit comments

Comments
 (0)