-
Notifications
You must be signed in to change notification settings - Fork 506
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
Updates accents on céntimos in Spanish #240
Conversation
@ohduran thanks for this contribution! You forgot to update the tests, please update them too. |
@ohduran thanks for updating the tests, please take a look into |
1 similar comment
Pull Request Test Coverage Report for Build 637
💛 - Coveralls |
@erozqba I'm unable to bring this forward; tests pass when using the command, but tox keeps on failing. Could you please point me in the right direction? Cheers, |
tests/test_cli.py
Outdated
@@ -106,6 +106,6 @@ def test_cli_with_lang_to(self): | |||
output = self.cli.run_cmd(150.55, '--lang', 'es', '--to', 'currency') | |||
self.assertEqual(output.return_code, 0) | |||
self.assertEqual( | |||
output.out.strip(), | |||
"ciento cincuenta euros con cincuenta y cinco centimos" | |||
output.out.strip().decode('utf-8'), |
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.
Would it make sense to add locale.getpreferredencoding()
here instead of utf-8
?
When running it locally i can get it to reproduce by doing:
It seems like Follow up, add the following inside tox.ini:
|
flake-8 compliant
flake8 compliant
Hi @erozqba, waiting for your approval to merge this PR and have the grammar corrected. Do let me know if there is anything else you need me to do. Alvaro. |
@erozqba can you make a release for 0.5.10 with this in it? Or are you waiting on some other milestone? |
Fixes # by Álvaro Durán
Changes proposed in this pull request:
Status
How to verify this change
This is a cosmetic change: make sure that the accent in 'céntimos' is there when running num2words with
to='currency'
.Additional notes