Skip to content

fix: import caldav.testing.registry on its own - #828

Merged
tobixen merged 2 commits into
masterfrom
fix/testing-registry-import-cycle
Oct 25, 2026
Merged

tobixen merged 2 commits into
masterfrom
fix/testing-registry-import-cycle

Conversation

@tobixen

@tobixen tobixen commented Oct 25, 2026

Copy link
Copy Markdown
Member

Commit message:

fix: import caldav.testing.registry on its own

Importing caldav.testing.registry before anything else in the package
failed: registry imports base, and base imported registry back to
register the external server class.  The tests/test_servers package
always imported base first, which hid the cycle.  The external class
is now registered in registry itself.

Prompt: (while working with the calendaring library) Do the needful ensuring all tests are run towards all servers ...

Assisted-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>

Follow-up to #824.

🤖 Generated with Claude Code

Importing caldav.testing.registry before anything else in the package
failed: registry imports base, and base imported registry back to
register the external server class.  The tests/test_servers package
always imported base first, which hid the cycle.  The external class
is now registered in registry itself.

Prompt: (while working with the calendaring library) Do the needful ensuring all tests are run towards all servers ...

Assisted-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
Comment thread tests/test_testing_base.py Fixed
The import test imported the caldav package beside the module's
from-import of caldav.testing.base, which code scanning flags.  The
checkout root now comes from base.__file__.

#828

Prompt: Fix the import for 828. [the code-scanning thread on #828: caldav imported with both import and from-import]

Assisted-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen merged commit b17aa6d into master Oct 25, 2026
17 checks passed
@tobixen
tobixen deleted the fix/testing-registry-import-cycle branch October 26, 2026 01:43
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