Skip to content

[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
mainfrom
quality/test-copr-build-chain
Open

[quality] test: add unit tests for copr-build-chain.py (resolve_pkg, get_rpm_name)#60
hanthor-hive-agent[bot] wants to merge 2 commits into
mainfrom
quality/test-copr-build-chain

Conversation

@hanthor-hive-agent

Copy link
Copy Markdown
Contributor

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 for copr-build-chain.py identified in issue #55, leaving all 9 Python scripts with test coverage.\n\n---\nFiled by quality agent (ACMM L4/L6 — full mode)

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants