Add comprehensive test suite and CI/CD pipeline#5
Merged
Conversation
- 102 unit tests covering all public methods in VUUtil, VUAdminUtil, VUDial, and VUAdmin using pytest and the responses library for HTTP mocking (no hardware or live server required) - Tests cover happy paths, correct endpoint/param construction, HTTP error propagation, URL encoding, and boundary values (RGB 0/255, value zero, missing files, etc.) - GitHub Actions workflow runs the full suite across Python 3.11, 3.12, and 3.13 on every push and pull request to main - pyproject.toml updated with [dev] optional dependencies (pytest, responses, pytest-cov) and pytest/coverage configuration https://claude.ai/code/session_01H9Y23xpAt1rCjBCXLUdujo
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
This PR adds a comprehensive test suite for the vudials_client library along with a CI/CD pipeline to ensure code quality and test coverage across multiple Python versions.
Key Changes
Test Suite (
tests/test_vudialsclient.py)VUUtil,VUAdminUtil,VUDial, andVUAdminclasseslist_dials(),get_dial_info(),set_dial_value(),set_dial_color(),set_dial_background(),get_dial_image_crc(),set_dial_name(),reload_hw_info(), easing configuration methodsprovision_dials(),list_api_keys(),remove_api_key(),create_api_key(),update_api_key()responseslibrary for mocking HTTP requestsconftest.pyCI/CD Pipeline (
.github/workflows/ci.yml)mainandclaude/**branches, and on pull requestspytest-covProject Configuration (
pyproject.toml)devoptional dependencies:pytest>=8.0,responses>=0.25,pytest-cov>=5.0src/vudials_clientsource codeNotable Implementation Details
https://claude.ai/code/session_01H9Y23xpAt1rCjBCXLUdujo