-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add method to retrieve active bundle #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces an active() method to the Bundles class to retrieve the currently active bundle, resolving issue #380.
- Added unit tests in tests/posit/connect/test_bundles.py for scenarios when an active bundle exists and when it does not.
- Implemented the active() method in src/posit/connect/bundles.py with proper documentation.
- Extended integration tests in integration/tests/posit/connect/test_bundles.py to validate bundle activation behavior.
- Updated the workflow file (.github/workflows/site.yaml) with minor adjustments to build commands.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/posit/connect/test_bundles.py | Added unit tests for new active() method behavior |
src/posit/connect/bundles.py | Introduced active() method with documentation |
integration/tests/posit/connect/test_bundles.py | Added integration tests for bundle activation functionality |
.github/workflows/site.yaml | Minor adjustment to build command indentation in workflow |
I did a side quest using Claude Code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I do appreciate that the operative code is small and we're adding test cases for places we lacked some before.
Adds
active()
method toBundles
class to retrieve the currently active bundle.Resolves #380