Skip to content

test: don't wipe a calendar not made for the tests - #853

Merged
tobixen merged 1 commit into
masterfrom
fix/no-borrowed-calendar-wipe
Nov 11, 2026
Merged

tobixen merged 1 commit into
masterfrom
fix/no-borrowed-calendar-wipe

Conversation

@tobixen

@tobixen tobixen commented Nov 8, 2026

Copy link
Copy Markdown
Member

Commit message:

test: don't wipe a calendar not made for the tests

Where no calendar could be created (Posteo, GMX and other servers with
create-calendar unsupported or fragile, or a refused MKCALENDAR with no
cal_id given), the test fixtures fell back to the first calendar the
server listed, and the tests then wiped it - possibly the user's own.
Only a calendar at the fixture's cal_id, one with "pythoncaldav-test"
in its display name or the one configured under test-calendar is used
now; otherwise the tests needing a calendar skip, saying how to opt in.

Prompt: [pick from the task list: "Stop integration tests from wiping a borrowed calendar without explicit opt-in"]

Assisted-By: Claude Opus 5.5 noreply@anthropic.com
Reviewed-by: Tobias Brox tobias@redpill-linpro.com

Also piggy-backing: docs: note client_context() stopping foreign servers

🤖 Generated with Claude Code

Where no calendar could be created (Posteo, GMX and other servers with
create-calendar unsupported or fragile, or a refused MKCALENDAR with no
cal_id given), the test fixtures fell back to the first calendar the
server listed, and the tests then wiped it - possibly the user's own.
Only a calendar at the fixture's cal_id, one with "pythoncaldav-test"
in its display name or the one configured under test-calendar is used
now; otherwise the tests needing a calendar skip, saying how to opt in.

Prompt: [pick from the task list: "Stop integration tests from wiping a borrowed calendar without explicit opt-in"]

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen force-pushed the fix/no-borrowed-calendar-wipe branch from 73d3367 to c7f0b41 Compare November 10, 2026 00:01
@tobixen
tobixen merged commit 62e0a31 into master Nov 11, 2026
17 checks passed
@tobixen
tobixen deleted the fix/no-borrowed-calendar-wipe branch November 11, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant