Conversation
Creates a VTODO-only calendar (when create-calendar is supported) and checks whether the server returns the supported-calendar-component-set property. If the returned set is exactly ["VTODO"] the property is advertised correctly (full); if the RFC default (all types) comes back the server does not advertise it (unsupported). Related to python-caldav/caldav#653 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
CheckGetSupportedComponents:
Calls get_supported_components(with_fallback=False) on any available
calendar. Full = server returns the property; unsupported = property
absent (RFC-compliant); ungraceful = unexpected exception.
CheckCreateCalendarWithComponentSet (was CheckSupportedComponents):
Creates a VTODO-only calendar and verifies the restriction is honoured.
- If get-supported-components is full: verify the property on the new
calendar returns ["VTODO"].
- If get-supported-components is unsupported: probe by trying to save a
VEVENT; server rejection means the restriction is enforced.
Feature: create-calendar.with-supported-component-types.
Also import PropfindError which is used to distinguish "property absent"
from other errors in CheckGetSupportedComponents.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to python-caldav/caldav#653 - test servers if they can tell what components the calendar supports, and also test weather calendar creation with a supported component set actually does anything.
Before merging, it's needed to: