Add unit tests for build and update-gh tools #162
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a
tests/directory with pytest-based unit tests for the two main tools.Scope
tools/buildeffective_release()— dist tag appending logicget_rpm_dist_tag()— distro-to-dist-tag mappingnormalize_version()— leading-zero strippingnormalize_github_version()— v-prefix removalparse_github_version_release()— version/release splittingcompare_versions()— version comparisoncheck_package_exists()— mock HTTP, test 200/404/401/timeout pathsdiscover_packages()— mock filesystem, validate PackageInfo outputtools/update-gh(if applicable)Notes
pytest tests/on Python file changes