Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork304
test(commands): centralize all --help tests in a file to dedup code#1726
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:v4-11-0
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedDec 13, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## v4-11-0 #1726 +/- ##========================================== Coverage ? 97.84% ========================================== Files ? 60 Lines ? 2604 Branches ? 0 ========================================== Hits ? 2548 Misses ? 56 Partials ? 0
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
097ef1f to6c3ef01Compare| skip_below_py_3_13=pytest.mark.skipif( | ||
| sys.version_info< (3,13), | ||
| reason="The output message of argparse is different between Python 3.13 and lower than Python 3.13", | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The variable name itself does not reflect why we want to set this variable... this may make it hard for future contributors to understand the code correctly
| monkeypatch.setenv("COLUMNS","80") | ||
| monkeypatch.setenv("TERM","dumb") | ||
| monkeypatch.setenv("LC_ALL","C") | ||
| monkeypatch.setenv("LANG","C") | ||
| monkeypatch.setenv("NO_COLOR","1") | ||
| monkeypatch.setenv("PAGER","cat") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Copied from AI output. I know COLUMNS is necessary, but not sure for the rest
bearomorphism commentedDec 14, 2025
woile commentedDec 14, 2025
I don't understand what this is supposed to fix |
bearomorphism commentedDec 14, 2025
The behavior of When we try to add new options to the CLI, the help text changes, and usually we run |
bearomorphism commentedDec 14, 2025
The following pipeline result is a false alarm test failure caused by forgetting to skip the test below python 3.13. https://github.com/commitizen-tools/commitizen/actions/runs/20207591917/job/58008470452?pr=1724 Test passes for python version 3.13, 3.14 but not on 3.10 This PR can fix it. |
Uh oh!
There was an error while loading.Please reload this page.
Test improvements
skip_below_py_3_13and missing forced consistent environment variables to reduce the chance of unnecessary file regression test failures.