WebDAV support!

This commit is contained in:
Leo Vasanko
2026-04-25 18:20:55 +00:00
parent 410a8a7568
commit d1faedc011
6 changed files with 472 additions and 9 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ def setup_storage(tmp_path: Path):
@pytest_asyncio.fixture()
async def client(setup_storage: Path):
app = Sanic(f"files-path-sec-test-{uuid4().hex}", strict_slashes=True)
app.router.ALLOWED_METHODS = (*app.router.ALLOWED_METHODS, "MKCOL")
app.router.ALLOWED_METHODS = (*app.router.ALLOWED_METHODS, "MKCOL", "MOVE", "COPY", "PROPFIND")
app.blueprint(fileserver_bp)
yield app.asgi_client