-
-
Notifications
You must be signed in to change notification settings - Fork 304
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 our terms of service and privacy 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?
Conversation
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 to
6c3ef01
Compare
6c3ef01 to
ecd05a4
Compare
ecd05a4 to
ce12748
Compare
| 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
Test improvements
skip_below_py_3_13and missing forced consistent environment variables to reduce the chance of unnecessary file regression test failures.