brazilian-utils / brutils-python

Biblioteca de utilitários projetada para validar, gerar e manipular dados de acordo com as particularidades do Brasil 🇧🇷
https://pypi.python.org/pypi/brutils
MIT License
249 stars 59 forks source link

Melhorando teste de imports #389

Closed camilamaia closed 1 month ago

camilamaia commented 1 month ago

Agora teste pelo números de imports no init.py e pelo números de imports no all.

Se tiver um import faltando no init.py o teste irá falhar desta forma:

AssertionError: x public method(s) missing from imports at __init__.py

Se tiver um import faltando no all do init, o teste irá falhar desta forma: AssertionError: Public method(s) missing from __all__: {'format_cep', 'remove_international_dialing_code'}

Closes #388

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.77%. Comparing base (4947074) to head (23b7470). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #389 +/- ## ======================================= Coverage 99.77% 99.77% ======================================= Files 17 17 Lines 436 437 +1 ======================================= + Hits 435 436 +1 Misses 1 1 ```

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