Skip to content

Conversation

@atravitz
Copy link
Contributor

@atravitz atravitz commented May 16, 2025

Resolves #1272

We do need to pin to >= 8.2.0 though, so I'm fine waiting a bit to merge this in.

Checklist

  • Added a news entry

Developers certificate of origin

@atravitz atravitz requested a review from mikemhenry May 16, 2025 18:24
def test_init(self, value):
ch = HyphenAwareChoice([value])
assert ch.choices == ["foo-bar-baz"]
assert ch.choices == ("foo-bar-baz",)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://click.palletsprojects.com/en/stable/api/#click.Choice click now casts this to a tuple, shouldn't be an issue for us.

@codecov
Copy link

codecov bot commented May 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.73%. Comparing base (db46003) to head (e846cb2).
⚠️ Report is 257 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1276      +/-   ##
==========================================
+ Coverage   92.63%   92.73%   +0.10%     
==========================================
  Files         143      141       -2     
  Lines       10952    10863      -89     
==========================================
- Hits        10145    10074      -71     
+ Misses        807      789      -18     
Flag Coverage Δ
fast-tests 92.73% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mikemhenry mikemhenry enabled auto-merge (squash) May 27, 2025 18:15
@github-actions
Copy link

No API break detected ✅

@mikemhenry mikemhenry merged commit 098c0a8 into main May 27, 2025
13 checks passed
@mikemhenry mikemhenry deleted the fix_click_tests branch May 27, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update tests to work with click >=8.2.0

3 participants