-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
pygettext: Improve test coverage #130197
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
Comments
As I said on the PR, even if the tests may be redundant, they are still checking that running the tool with |
A lot of them are redundant, for instance In addition to removing some of the tests, we might also want to add one test that checks that the docstrings are not extracted when the |
Ok for removing the tests, but it would be good that we have an E2E test for |
Yes of course, that is not going away, I actually think the we need more tests for the CLI in general, but the other tests just get in the way for little gain |
The use of |
I see, I didn't consider the (hopefully unlikely!) possibility of changing the implementation. In that case, let's keep the tests and let's focus on actually fully testing the CLI - there are still many options/flags which are not tested at all currently. |
…-131902) (cherry picked from commit 87d9983) Co-authored-by: Tomas R. <[email protected]>
…-131902) (cherry picked from commit 87d9983) Co-authored-by: Tomas R. <[email protected]>
…-131902) (cherry picked from commit 87d9983) Co-authored-by: Tomas R. <[email protected]>
…-131902) (cherry picked from commit 87d9983) Co-authored-by: Tomas R. <[email protected]>
…-131902) (cherry picked from commit 87d9983) Co-authored-by: Tomas R. <[email protected]>
…-131902) (cherry picked from commit 87d9983) Co-authored-by: Tomas R. <[email protected]>
Options that should be tested:
--extract-all(NO-OP, deprecated since 3.14)--escape
option #131902pygettext
output option #133041pygettext
#133022--exclude-file
option #131381pygettext
#133021 (Renames to exclude-docstrings)Linked PRs
--exclude-file
option #131381--escape
option #131902pygettext
#133021pygettext
#133022pygettext
output option #133041msgfmt.py
#133048The text was updated successfully, but these errors were encountered: