test: add schema preprocessing coverage and CI#54
Merged
damaz91 merged 1 commit intoJul 15, 2026
Merged
Conversation
Contributor
|
Thanks a lot @ShuoRen-TT for working on this. LGTM! |
damaz91
approved these changes
Jul 15, 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.
Description
preprocess_schemas.pycontrols schema normalization and request-variant generation, but the repository did not have an automated test suite for this pipeline. This PR adds 13 standard-library unit and integration-style tests covering:allOfflattening and entity-field inliningucp_requestoperation inclusion rulesIt also adds a minimal GitHub Actions matrix for Python 3.10, 3.11, and 3.12, plus the corresponding local test command in the README. There are no production-code or generated-model changes.
Category (Required)
Please select one or more categories that apply to this change.
ucp-schematool (resolver, linter, validator). (Requires Maintainer approval)Related Issues
Follow-up regression coverage for #52. This PR does not close an issue.
Checklist
!for breaking changes).Screenshots / Logs (if applicable)
python3 -m unittest discover -s tests -p 'test_*.py' -v: 13 tests passedruff checkandruff format --check: passedgit diff --check: passedThe repository-pinned
mirrors-prettier@v4.0.0-alpha.8pre-commit environment could not initialize locally because npm could not resolvetiny-levenshtein@^1.1.0. The applicable changed files were checked directly with stable Prettier 3.6.2 and passed.