Commit 2cd6332
feat: add save-load.mutable feature replacing the old no_overwrite flag
Add 'save-load.mutable' to the FEATURES dict in compatibility_hints.py:
it indicates that a calendar object resource can be modified and PUT
back to the server (the server must reflect the change on the next
GET/REPORT). Defaults to 'full' as virtually all servers support this;
the check exists to surface rare exceptions like Google Calendar's
legacy CalDAV API.
Replace every use of the old 'no_overwrite' quirk flag in test_caldav.py
with the new feature:
skip_on_compatibility_flag("no_overwrite") → skip_unless_support("save-load.mutable")
if not check_compatibility_flag("no_overwrite"): → if is_supported("save-load.mutable"):
prompt: Create tests for a new feature checking if it's possible to
overwrite a calendar event with new data. Should replace the old
"overwrite" compatibility flag. (Perhaps this "incompatibility" was due
to the caldav library not supporting etags and not updating from no
sequence to SEQUENCE:1 ... i somehow doubt we'll find any servers not
supporting this feature, but we should have the check anyway).
load-save.mutable ? Update the compatibility_hints.py in
/tmp/caldav-async-tests/ and update the tests there as well.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent eb2c079 commit 2cd6332
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2103 | 2103 | | |
2104 | 2104 | | |
2105 | 2105 | | |
2106 | | - | |
| 2106 | + | |
2107 | 2107 | | |
2108 | 2108 | | |
2109 | 2109 | | |
| |||
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | | - | |
| 2237 | + | |
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
| |||
3701 | 3701 | | |
3702 | 3702 | | |
3703 | 3703 | | |
3704 | | - | |
| 3704 | + | |
3705 | 3705 | | |
3706 | 3706 | | |
3707 | 3707 | | |
| |||
3747 | 3747 | | |
3748 | 3748 | | |
3749 | 3749 | | |
3750 | | - | |
| 3750 | + | |
3751 | 3751 | | |
3752 | 3752 | | |
3753 | 3753 | | |
| |||
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
3807 | | - | |
| 3807 | + | |
3808 | 3808 | | |
3809 | 3809 | | |
3810 | 3810 | | |
| |||
0 commit comments