From 69780dd0ee954162f5b4f2203fdfa84c80dd4c26 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 24 Nov 2024 15:53:53 +0100 Subject: [PATCH] adjust test: verify that a request succeeded if the hook still fails (anyhow no rollback implemented) --- radicale/tests/test_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/tests/test_storage.py b/radicale/tests/test_storage.py index 9072a354..b03dadf7 100644 --- a/radicale/tests/test_storage.py +++ b/radicale/tests/test_storage.py @@ -80,9 +80,9 @@ class TestMultiFileSystem(BaseTest): self.propfind("/created_by_hook/") def test_hook_fail(self) -> None: - """Verify that a request fails if the hook fails.""" + """Verify that a request succeeded if the hook still fails (anyhow no rollback implemented).""" self.configure({"storage": {"hook": "exit 1"}}) - self.mkcalendar("/calendar.ics/", check=500) + self.mkcalendar("/calendar.ics/", check=200) def test_item_cache_rebuild(self) -> None: """Delete the item cache and verify that it is rebuild."""