|
1 | 1 | # This file is part of Radicale - CalDAV and CardDAV server |
2 | 2 | # Copyright © 2012-2017 Guillaume Ayoub |
3 | 3 | # Copyright © 2017-2022 Unrud <unrud@outlook.com> |
4 | | -# Copyright © 2024-2024 Peter Bieringer <pb@bieringer.de> |
| 4 | +# Copyright © 2024-2025 Peter Bieringer <pb@bieringer.de> |
5 | 5 | # |
6 | 6 | # This library is free software: you can redistribute it and/or modify |
7 | 7 | # it under the terms of the GNU General Public License as published by |
@@ -222,7 +222,7 @@ def test_update_event(self) -> None: |
222 | 222 | event_modified = get_file_content("event1_modified.ics") |
223 | 223 | path = "/calendar.ics/event1.ics" |
224 | 224 | self.put(path, event) |
225 | | - self.put(path, event_modified) |
| 225 | + self.put(path, event_modified, check=204) |
226 | 226 | _, answer = self.get("/calendar.ics/") |
227 | 227 | assert answer.count("BEGIN:VEVENT") == 1 |
228 | 228 | _, answer = self.get(path) |
@@ -1594,8 +1594,8 @@ def test_report_sync_collection_modify_undo(self) -> None: |
1594 | 1594 | self.put(event_path, event1) |
1595 | 1595 | sync_token, responses = self._report_sync_token(calendar_path) |
1596 | 1596 | assert len(responses) == 1 and responses[event_path] == 200 |
1597 | | - self.put(event_path, event2) |
1598 | | - self.put(event_path, event1) |
| 1597 | + self.put(event_path, event2, check=204) |
| 1598 | + self.put(event_path, event1, check=204) |
1599 | 1599 | sync_token, responses = self._report_sync_token( |
1600 | 1600 | calendar_path, sync_token) |
1601 | 1601 | if not self.full_sync_token_support and not sync_token: |
|
0 commit comments