René's URL Explorer Experiment


Title: test: normalize argparse choice snapshots by puneetdixit200 · Pull Request #2000 · commitizen-tools/commitizen · GitHub

Open Graph Title: test: normalize argparse choice snapshots by puneetdixit200 · Pull Request #2000 · commitizen-tools/commitizen

X Title: test: normalize argparse choice snapshots by puneetdixit200 · Pull Request #2000 · commitizen-tools/commitizen

Description: Description Fixes #1990 by normalizing only the volatile argparse (choose from ...) choice list before the invalid-command snapshot assertion. This lets the invalidCommand parametrization run again on Python 3.14.5+, while keeping the command failure, usage output, and invalid value covered. Checklist I have read the contributing guidelines Was generative AI tooling used to co-author this PR? Yes (OpenAI GPT-5) Generated-by: OpenAI GPT-5 following the guidelines Code Changes Add test cases to all the changes you introduce Run uv run poe all locally to ensure this change passes linter check and tests Manually test the changes: Verify the feature/bug fix works as expected in real-world scenarios Test edge cases and error conditions Ensure backward compatibility is maintained Document any manual testing steps performed Update the documentation for the changes Documentation Changes No documentation changes. Run uv run poe doc locally to ensure the documentation pages renders correctly Check and fix any broken links (internal or external) Expected Behavior tests/test_cli.py::test_invalid_command[invalidCommand] should pass across Python patch releases that differ only in whether argparse quotes the choose from entries. Steps to Test This Pull Request UV_CACHE_DIR=$PWD/.uv-cache UV_PROJECT_ENVIRONMENT=$PWD/.venv314 uv run --python python3.14 --group test pytest tests/test_cli.py::test_normalize_argparse_choice_quotes tests/test_cli.py::test_invalid_command -q UV_CACHE_DIR=$PWD/.uv-cache UV_PROJECT_ENVIRONMENT=$PWD/.venv314 uv run --python python3.14 ruff check tests/test_cli.py UV_CACHE_DIR=$PWD/.uv-cache UV_PROJECT_ENVIRONMENT=$PWD/.venv314 uv run --python python3.14 ruff format --check tests/test_cli.py git diff --check Additional Context I did not run the full uv run poe all suite locally because this change is isolated to tests/test_cli.py and the targeted Python 3.14.5 regression plus ruff checks cover the changed behavior.

Open Graph Description: Description Fixes #1990 by normalizing only the volatile argparse (choose from ...) choice list before the invalid-command snapshot assertion. This lets the invalidCommand parametrization run again...

X Description: Description Fixes #1990 by normalizing only the volatile argparse (choose from ...) choice list before the invalid-command snapshot assertion. This lets the invalidCommand parametrization run again...

Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/2000

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:30077e04-4abf-e3c8-94ed-be11b43d1e76
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id844A:3FF0AC:547AA1:72622D:6A4DA774
html-safe-nonce2e224c0f74844024b934c9b14068b27e9747303fb494aa6e3199d1bbae40670e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDRBOjNGRjBBQzo1NDdBQTE6NzI2MjJEOjZBNERBNzc0IiwidmlzaXRvcl9pZCI6IjQ1NjQzMjU0ODQ1NTczNDY2NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2c68b40a3208a88260a9a158bd303183e8ec18068ea47d285c23e9901142e833
hovercard-subject-tagpull_request:3722806209
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/commitizen-tools/commitizen/pull/2000/files
twitter:imagehttps://avatars.githubusercontent.com/u/236133619?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/236133619?s=400&v=4
og:image:altDescription Fixes #1990 by normalizing only the volatile argparse (choose from ...) choice list before the invalid-command snapshot assertion. This lets the invalidCommand parametrization run again...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release47723578ce6819210724ef064c858fce6d3115a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/2000/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F2000%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F2000%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/pull/2000/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/2000/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/2000/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/2000/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/2000/files
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 343 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
bearomorphismhttps://github.com/bearomorphism
commitizen-tools:masterhttps://github.com/commitizen-tools/commitizen/tree/master
puneetdixit200:fix-argparse-choice-snapshotshttps://github.com/puneetdixit200/commitizen/tree/fix-argparse-choice-snapshots
Conversation 3 https://github.com/commitizen-tools/commitizen/pull/2000
Commits 2 https://github.com/commitizen-tools/commitizen/pull/2000/commits
Checks 21 https://github.com/commitizen-tools/commitizen/pull/2000/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/2000/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/2000/files
test: normalize argparse choice snapshots https://github.com/commitizen-tools/commitizen/pull/2000/files#top
Show all changes 2 commits https://github.com/commitizen-tools/commitizen/pull/2000/files
9b6f74b test: normalize argparse choice snapshots puneetdixit200 May 21, 2026 https://github.com/commitizen-tools/commitizen/pull/2000/commits/9b6f74bb78def379ebb07825389f4336d1d08598
2d26580 test: normalize invalid command snapshots May 21, 2026 https://github.com/commitizen-tools/commitizen/pull/2000/commits/2d2658003637a4ac3db69a4e86ad16c67a42eb75
Clear filters https://github.com/commitizen-tools/commitizen/pull/2000/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/2000/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/2000/files
test_cli.py https://github.com/commitizen-tools/commitizen/pull/2000/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
test_invalid_command_py_3_10_invalidCommand_.txt https://github.com/commitizen-tools/commitizen/pull/2000/files#diff-61ce01f0338eabb8533a241b197ce47dda75f0fccf86137ff149f4174a9f44aa
test_invalid_command_py_3_11_invalidCommand_.txt https://github.com/commitizen-tools/commitizen/pull/2000/files#diff-5b9c1204bcdcd642c43d4fbf276d1023a9379ac61a10488286d64cc3b2b22bf7
tests/test_cli.pyhttps://github.com/commitizen-tools/commitizen/pull/2000/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
View file https://github.com/puneetdixit200/commitizen/blob/2d2658003637a4ac3db69a4e86ad16c67a42eb75/tests/test_cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/2000/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/2000/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
https://github.com/commitizen-tools/commitizen/pull/2000/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
https://github.com/commitizen-tools/commitizen/pull/2000/files#diff-4e8715c7a425ee52e74b7df4d34efd32e8c92f3e60bd51bc2e1ad5943b82032e
tests/test_cli/test_invalid_command_py_3_10_invalidCommand_.txthttps://github.com/commitizen-tools/commitizen/pull/2000/files#diff-61ce01f0338eabb8533a241b197ce47dda75f0fccf86137ff149f4174a9f44aa
View file https://github.com/puneetdixit200/commitizen/blob/2d2658003637a4ac3db69a4e86ad16c67a42eb75/tests/test_cli/test_invalid_command_py_3_10_invalidCommand_.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/2000/{{ revealButtonHref }}
tests/test_cli/test_invalid_command_py_3_11_invalidCommand_.txthttps://github.com/commitizen-tools/commitizen/pull/2000/files#diff-5b9c1204bcdcd642c43d4fbf276d1023a9379ac61a10488286d64cc3b2b22bf7
View file https://github.com/puneetdixit200/commitizen/blob/2d2658003637a4ac3db69a4e86ad16c67a42eb75/tests/test_cli/test_invalid_command_py_3_11_invalidCommand_.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/2000/{{ revealButtonHref }}
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/2000/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.