Skip to content
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

Adding Language Support for Telugu / Bug Fix in Kannada #263

Merged
merged 9 commits into from Dec 31, 2019

Conversation

venu1807
Copy link
Contributor

@venu1807 venu1807 commented Jul 4, 2019

Fixes # by Venu Gopal Achhe

Changes proposed in this pull request:

  • Add language support for Telugu
  • Bug Fix in Kannada concerning currencies

Status

  • READY
  • HOLD
  • WIP (Work-In-Progress)

How to verify this change

Telugu is not supported yet.
Kannada currencies were not included.

Additional notes

@coveralls
Copy link

Pull Request Test Coverage Report for Build 708

  • 54 of 58 (93.1%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 92.951%

Changes Missing Coverage Covered Lines Changed/Added Lines %
num2words/lang_TE.py 30 34 88.24%
Totals Coverage Status
Change from base Build 702: -0.02%
Covered Lines: 4984
Relevant Lines: 5269

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jul 4, 2019

Pull Request Test Coverage Report for Build 843

  • 72 of 75 (96.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 95.158%

Changes Missing Coverage Covered Lines Changed/Added Lines %
num2words/lang_TE.py 33 36 91.67%
Totals Coverage Status
Change from base Build 839: 0.003%
Covered Lines: 10270
Relevant Lines: 10638

💛 - Coveralls

@venu1807
Copy link
Contributor Author

venu1807 commented Jul 4, 2019

What do I need to do to pass the coverage test? Please help.

@mariaS210
Copy link
Contributor

Hi @venu1807! For coverage, there's a folder with tests: https://github.com/savoirfairelinux/num2words/tree/master/tests
You will need to add a new test file for Telugu and a test case for Kannada (here: https://github.com/savoirfairelinux/num2words/blob/master/tests/test_kn.py) (so that the coverage doesn't drop, and you can check your fix).
A test simply inherits TestCase and has a test_ method(s) and checks that some numbers are as expected.
Make sure to test the corner cases where Telugu has special handling. Also, make sure to test that years and currency are properly generated.
You can take a look at other tests, for ideas, like the english test: https://github.com/savoirfairelinux/num2words/blob/master/tests/test_en.py
It helps to setup Coveralls and Travis on your forked repo if you want to check coverage as you're writing tests.
Hope this helps.

@sarahberanek
Copy link
Contributor

Hi @venu1807! For coverage, there's a folder with tests: https://github.com/savoirfairelinux/num2words/tree/master/tests
You will need to add a new test file for Telugu and a test case for Kannada (here: https://github.com/savoirfairelinux/num2words/blob/master/tests/test_kn.py) (so that the coverage doesn't drop, and you can check your fix).
A test simply inherits TestCase and has a test_ method(s) and checks that some numbers are as expected.
Make sure to test the corner cases where Telugu has special handling. Also, make sure to test that years and currency are properly generated.
You can take a look at other tests, for ideas, like the english test: https://github.com/savoirfairelinux/num2words/blob/master/tests/test_en.py
It helps to setup Coveralls and Travis on your forked repo if you want to check coverage as you're writing tests.
Hope this helps.

Hi Maria,
there is already a test file for Telugu in Venus pull request: https://github.com/savoirfairelinux/num2words/blob/a2900faccf4922cf6c0be863fe0ddb4292ec40b8/tests/test_te.py

@mariaS210
Copy link
Contributor

Hi Maria,
there is already a test file for Telugu in Venus pull request: https://github.com/savoirfairelinux/num2words/blob/a2900faccf4922cf6c0be863fe0ddb4292ec40b8/tests/test_te.py

Ah, my bad! I did not look in the pull request. Then I guess https://coveralls.io/builds/24375365/source?filename=num2words/lang_TE.py shows you which lines are not covered in lang_TE.py

@sarahberanek
Copy link
Contributor

Hi all,
anything else needs to be done here to get this approved?

pierreduchemin
pierreduchemin previously approved these changes Sep 4, 2019
@pierreduchemin
Copy link
Contributor

Hi all,
anything else needs to be done here to get this approved?

No, sorry for the delay

@pierreduchemin pierreduchemin merged commit e06493c into savoirfairelinux:master Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants