From 5fab53eaf4b5d6249e65d491a00e5b96bc887b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kl=C3=B6tzke?= Date: Mon, 1 Jul 2024 22:39:56 +0200 Subject: [PATCH] test: fix archive WebDAV unit test The mock server must cope with the trailing slash in the MKCOL command. --- doc/tutorial/index.rst | 1 + test/unit/test_archive.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/tutorial/index.rst b/doc/tutorial/index.rst index df180b38e..aececcb7e 100644 --- a/doc/tutorial/index.rst +++ b/doc/tutorial/index.rst @@ -8,5 +8,6 @@ Contents: compile jenkins + archive create fingerprints diff --git a/test/unit/test_archive.py b/test/unit/test_archive.py index 9197c0086..de8395349 100644 --- a/test/unit/test_archive.py +++ b/test/unit/test_archive.py @@ -544,6 +544,8 @@ def do_MKCOL(self): self.end_headers() return + path = path.rstrip("/") + parent, _ = os.path.split(path) if not os.path.isdir(parent): self.send_response(409)