chidiwilliams / buzz

Buzz transcribes and translates audio offline on your personal computer. Powered by OpenAI's Whisper.
https://chidiwilliams.github.io/buzz
MIT License
11.81k stars 884 forks source link

Test improvements #755

Closed raivisdejus closed 3 months ago

raivisdejus commented 3 months ago

Adding translations to tests, so they also work in non-english locales. Also adding a test for locale and main app. Test for main app mainly for test coverage scores

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 74.19%. Comparing base (38f5d26) to head (66d4d79). Report is 6 commits behind head on main.

Files Patch % Lines
buzz/buzz.py 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #755 +/- ## ========================================== - Coverage 81.28% 74.19% -7.09% ========================================== Files 81 83 +2 Lines 3617 3891 +274 ========================================== - Hits 2940 2887 -53 - Misses 677 1004 +327 ``` | [Flag](https://app.codecov.io/gh/chidiwilliams/buzz/pull/755/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chidi+Williams) | Coverage Δ | | |---|---|---| | [Linux](https://app.codecov.io/gh/chidiwilliams/buzz/pull/755/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chidi+Williams) | `74.19% <60.00%> (?)` | | | [Windows](https://app.codecov.io/gh/chidiwilliams/buzz/pull/755/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chidi+Williams) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chidi+Williams#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.