Skip to content

Commit 95f85cc

Browse files
tobixenclaude
andcommitted
Fix Xandikos test server: XandikosBackend → SingleUserFilesystemBackend
XandikosBackend was removed in xandikos master; the replacement is SingleUserFilesystemBackend (same API, positional path argument). The dulwich do_commit() incompatibility is fixed in xandikos master too. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5d243c8 commit 95f85cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_servers/embedded.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def start(self) -> None:
215215
return
216216

217217
try:
218-
from xandikos.web import XandikosApp, XandikosBackend
218+
from xandikos.web import SingleUserFilesystemBackend, XandikosApp
219219
except ImportError as e:
220220
raise RuntimeError("Xandikos is not installed") from e
221221

@@ -228,7 +228,7 @@ def start(self) -> None:
228228
self.serverdir.__enter__()
229229

230230
# Create backend and configure principal (following conf.py pattern)
231-
backend = XandikosBackend(path=self.serverdir.name)
231+
backend = SingleUserFilesystemBackend(self.serverdir.name)
232232
backend._mark_as_principal(f"/{self.username}/")
233233
backend.create_principal(f"/{self.username}/", create_defaults=True)
234234

0 commit comments

Comments
 (0)