Skip to content

Add more tests on Enum rendering#3053

Merged
Rowlando13 merged 1 commit intopallets:mainfrom
kdeldycke:check-help-enum-rendering
Sep 11, 2025
Merged

Add more tests on Enum rendering#3053
Rowlando13 merged 1 commit intopallets:mainfrom
kdeldycke:check-help-enum-rendering

Conversation

@kdeldycke
Copy link
Copy Markdown
Collaborator

This is just some more unit-tests to demonstrate that Click use Enums names instead of their values.

These tests particularly highlight Enum's whose keys mismatch their values. And add checks on the error messages proposing the accepted values for an option when a random one is provided by the user.

Refs:

@kdeldycke kdeldycke added the f:parameters feature: input parameter types label Aug 30, 2025
@Rowlando13 Rowlando13 merged commit 16fe802 into pallets:main Sep 11, 2025
10 checks passed
@kdeldycke kdeldycke deleted the check-help-enum-rendering branch September 18, 2025 08:04
@kdeldycke
Copy link
Copy Markdown
Collaborator Author

Thanks @Rowlando13 for the merge! :)

@kdeldycke kdeldycke added this to the 8.3.0 milestone Sep 18, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f:parameters feature: input parameter types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants