Skip to content

Adicionei municipio Boa Esperança do Norte - MT ao arquivo MunIBGE-UF51 #397

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pynfe/data/MunIBGE/MunIBGE-UF51.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
5100102 Acorizal
5100102 Acorizal
5100201 Água Boa
5100250 Alta Floresta
5100300 Alto Araguaia
Expand All @@ -15,6 +15,7 @@
5101605 Barão de Melgaço
5101704 Barra do Bugres
5101803 Barra do Garças
5101837 Boa Esperança do Norte
5101852 Bom Jesus do Araguaia
5101902 Brasnorte
5102504 Cáceres
Expand Down Expand Up @@ -139,3 +140,4 @@
5108857 Nova Marilândia
5108907 Nova Maringá
5108956 Nova Monte Verde

3 changes: 3 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def test_normalizar_municipio_acento_circunflexo_na_letra_o(self):
def test_normalizar_municipio_apostrofo(self):
self.assertEqual(normalizar_municipio("Lambari D'Oeste"), "LAMBARI DOESTE")

def test_normalizar_municipio_boa_esperanca_do_norte(self):
self.assertEqual(normalizar_municipio("Boa Esperança do Norte"),"BOA ESPERANCA DO NORTE")

Comment on lines +96 to +98
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui você está testando a normalização do "ç", mas esse teste não é necessário, pois isso já está coberto por este teste: https://github.com/TadaSoftware/PyNFe/blob/main/tests/test_utils.py#L62

# obter_codigo_por_municipio
def test_obter_codigo_por_municipio_saopaulo_3550308(self):
self.assertEqual(obter_codigo_por_municipio("São Paulo", "SP"), "3550308")
Expand Down
Loading