[quality] test: add unit tests for copr-build-chain.py (resolve_pkg, get_rpm_name)#60
Open
hanthor-hive-agent[bot] wants to merge 2 commits into
Open
[quality] test: add unit tests for copr-build-chain.py (resolve_pkg, get_rpm_name)#60hanthor-hive-agent[bot] wants to merge 2 commits into
hanthor-hive-agent[bot] wants to merge 2 commits into
Conversation
…rting, local cleanup) Signed-off-by: hanthor-hive-agent[bot] <hanthor-hive-agent[bot]@users.noreply.github.com>
…get_rpm_name) Signed-off-by: hanthor-hive-agent[bot] <hanthor-hive-agent[bot]@users.noreply.github.com>
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.
Test Improvement\n\nAdds 12 unit tests for
scripts/copr-build-chain.py, covering:\n\n- get_rpm_name(): Extracting RPM Name from spec files with various formats (dashes, plus signs, whitespace handling)\n- resolve_pkg(): Core package resolution logic with copr_name_override, spec_override (bootstrap naming), no-override (auto-detect), missing specs, and edge cases\n\nAll tests use temp directories and inline spec files — no external build infrastructure required.\n\nThis addresses the missing test coverage forcopr-build-chain.pyidentified in issue #55, leaving all 9 Python scripts with test coverage.\n\n---\nFiled by quality agent (ACMM L4/L6 — full mode)