test: Add unit tests for openstack CLI commands, expand tox testenv - #35
Merged
Conversation
This meta-package has zero source code of its own -- it exists purely to bundle a curated set of OpenStack client libraries pinned to versions known to work with Cleura Cloud. The tests validate that every dependency correctly registers its CLI commands, can be loaded without error, and follows the expected cliff.command.Command contract. Without these tests, a dependency update that silently breaks command registration or changes the CLI interface would go undetected until a user hits the issue. The tests serve as a regression guard for the entire dependency bundle. - Add tests/test_commands.py with tests covering: - Package metadata (name, version, Python requirement, license) - Console script entry points (openstack and cleura-openstack) - OpenStack command entry points loading, command counts, and class structure - Well-known command availability across command groups - OpenStackShell class attributes and methods - subprocess integration tests for --help output - Add tests/__init__.py for the tests package - Add [dependency-groups] pytest for test dependencies - Add pytest invocation to tox testenvs Assisted-by: opencode/qwen3.6-35b-a3b-fp8
NamrataSitlani
previously approved these changes
Sep 1, 2026
- test_token_issue: verify 'openstack token issue' returns successfully - test_quota_show: verify 'openstack quota show' returns successfully - test_*_list: verify 'openstack <subcommand> list' returns successfully All tests are gated by @pytest.mark.skipif on non-empty OS_CLOUD env var. Make sure we pass OS_ variables through to the tox testenv. Assisted-by: opencode/qwen3.6-35b-a3b-fp8
NamrataSitlani
approved these changes
Sep 1, 2026
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.
This meta-package has zero source code of its own -- it exists purely to
bundle a curated set of OpenStack client libraries pinned to versions
known to work with Cleura Cloud. The tests validate that every
dependency correctly registers its CLI commands, can be loaded without
error, and follows the expected cliff.command.Command contract.
Without these tests, a dependency update that silently breaks command
registration or changes the CLI interface would go undetected until a
user hits the issue. The tests serve as a regression guard for the
entire dependency bundle.
Assisted-by: opencode/qwen3.6-35b-a3b-fp8