Skip to content

Commit

Permalink
test: fix archive WebDAV unit test
Browse files Browse the repository at this point in the history
The mock server must cope with the trailing slash in the MKCOL command.
  • Loading branch information
jkloetzke committed Jul 1, 2024
1 parent b808774 commit 5fab53e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Contents:

compile
jenkins
archive
create
fingerprints
2 changes: 2 additions & 0 deletions test/unit/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5fab53e

Please sign in to comment.