Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for dependency constraints #42

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Feb 18, 2024

These tests evaluate the code which shows a message to the user when a dependency with a version constraint is not satisfied by the version of the dependency which is present.

This brings us to 100% coverage in https://github.com/colcon/colcon-package-information/blob/master/colcon_package_information/package_augmentation/check_dependency_constraint.py

@cottsay cottsay self-assigned this Feb 18, 2024
These tests evaluate the code which shows a message to the user when a
dependency with a version constraint is not satisfied by the version of
the dependency which is present.
ignore:pkg_resources is deprecated as an API::flake8_import_order
ignore:pkg_resources is deprecated as an API::
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needed to be loosened because we're actually running the code in the tests now. I'm going to follow up with a change that will break our dependency on pkg_resources directly, at which point I'll revert this hunk.

@cottsay cottsay merged commit ae5aa36 into master Feb 27, 2024
20 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/dep-constraint-tests branch February 27, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants