Skip to content

Conversation

@LalatenduMohanty
Copy link
Member

@LalatenduMohanty LalatenduMohanty commented Oct 29, 2025

test(graph): update constraint tests for Requirement type

Update test_graph.py to use Requirement objects instead of strings
for constraint parameters, following the API change in commit 718d2f3.

Changes:

  • Pass Requirement objects to add_dependency() constraint parameter
  • Update assertions to check Requirement type instead of string
  • Change empty constraint checks from "" to None
  • Account for canonical ordering in constraint string representation
    (e.g., ">=1.0,<3.0" becomes "<3.0,>=1.0")

All tests pass with mypy type checking enabled.

Fixes compatibility with: 718d2f3 (chore: use Requirement | None for constraint)

@LalatenduMohanty LalatenduMohanty requested a review from a team as a code owner October 29, 2025 13:00
@mergify mergify bot added the ci label Oct 29, 2025
Update test_graph.py to use Requirement objects instead of strings
for constraint parameters, following the API change in commit 718d2f3.

Changes:
- Pass Requirement objects to add_dependency() constraint parameter
- Update assertions to check Requirement type instead of string
- Change empty constraint checks from "" to None
- Account for canonical ordering in constraint string representation
  (e.g., ">=1.0,<3.0" becomes "<3.0,>=1.0")

Fixes: 718d2f3

Signed-off-by: Lalatendu Mohanty <[email protected]>
Copy link
Collaborator

@tiran tiran left a comment

Choose a reason for hiding this comment

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

Thanks!

@mergify mergify bot merged commit 3c7cb66 into python-wheel-build:main Oct 29, 2025
111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants