Repository navigation
test(integrations): make unknown integration checks independent of network - #5486
Merged
Merged
Conversation
…twork Use the existing catalog test helper to supply an empty successful response when testing init, install and switch with an unknown integration. Assisted-by: OpenAI Codex (model: GPT-6.2, autonomous)
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and the changes isolate the regression tests from network-backed catalogs while preserving their existing assertions.
No open issues 🎉
What changed in this PR
This pull request makes unknown-integration CLI regression tests deterministic and independent of network-backed catalogs while preserving their existing exit-code and diagnostic assertions.
Changes:
- Reuses the shared catalog-stubbing test base for the install, switch, and init tests.
- Provides empty successful catalog responses before testing unknown integrations.
- Leaves production CLI behavior unchanged.
| File | Description |
|---|---|
| tests/specify_cli/integrations/test_command_switch.py | Uses the catalog helper to isolate the unknown switch-target test from network access. |
| tests/specify_cli/integrations/test_command_install.py | Uses the catalog helper to isolate the unknown integration install test from network access. |
| tests/integrations/test_cli.py | Uses the catalog helper to isolate the unknown init integration test from network access. |
Review effort: Lite (adaptive)
Collaborator
|
Thank you! |
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.
Summary
The unknown-integration CLI tests for
init,integration install, andintegration switchcurrently depend on the public integration catalogs. Without network access, catalog lookup fails before the CLI can report the unknown name. Reuse the existing catalog test helper to supply an empty successful response and keep the exit-code and diagnostic assertions.Testing
All three cases failed on
617e9a0in the restricted environment. All 247 tests in the three affected modules passed with the patch.AI disclosure
OpenAI Codex (GPT-6.2, default reasoning settings, autonomous under contributor direction) reproduced the failures, prepared the test changes and this description, and ran the validation.