From 5d2b767cb8be804fefd5d0eb9ac926bdaf09666a Mon Sep 17 00:00:00 2001 From: Rodolfo Cavalcante Date: Fri, 28 Mar 2025 21:53:25 -0400 Subject: [PATCH 1/5] =?UTF-8?q?Adicionei=20municipio=20Boa=20Esperan=C3=A7?= =?UTF-8?q?a=20do=20Norte=20-=20MT=20ao=20arquivo=20MunIBGE-UF51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/data/MunIBGE/MunIBGE-UF51.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pynfe/data/MunIBGE/MunIBGE-UF51.txt b/pynfe/data/MunIBGE/MunIBGE-UF51.txt index a092d9fb..ca0d8070 100644 --- a/pynfe/data/MunIBGE/MunIBGE-UF51.txt +++ b/pynfe/data/MunIBGE/MunIBGE-UF51.txt @@ -1,4 +1,4 @@ -5100102 Acorizal +5100102 Acorizal 5100201 Água Boa 5100250 Alta Floresta 5100300 Alto Araguaia @@ -15,7 +15,8 @@ 5101605 Barão de Melgaço 5101704 Barra do Bugres 5101803 Barra do Garças -5101852 Bom Jesus do Araguaia +5101852 Bom Jesus do Araguaia +5108404 Boa Esperança do Norte 5101902 Brasnorte 5102504 Cáceres 5102603 Campinápolis @@ -138,4 +139,5 @@ 5108808 Nova Guarita 5108857 Nova Marilândia 5108907 Nova Maringá -5108956 Nova Monte Verde +5108956 Nova Monte Verde + From 9ce61e7118ac0b0e2d1077e570924cb4eb247fda Mon Sep 17 00:00:00 2001 From: Rodolfo Cavalcante Date: Fri, 28 Mar 2025 22:17:12 -0400 Subject: [PATCH 2/5] =?UTF-8?q?Corrige=20tabula=C3=A7=C3=A3o=20do=20munici?= =?UTF-8?q?pio=20Boa=20Esperan=C3=A7a=20do=20Norte=20-=20MT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/data/MunIBGE/MunIBGE-UF51.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynfe/data/MunIBGE/MunIBGE-UF51.txt b/pynfe/data/MunIBGE/MunIBGE-UF51.txt index ca0d8070..e904e02b 100644 --- a/pynfe/data/MunIBGE/MunIBGE-UF51.txt +++ b/pynfe/data/MunIBGE/MunIBGE-UF51.txt @@ -16,7 +16,7 @@ 5101704 Barra do Bugres 5101803 Barra do Garças 5101852 Bom Jesus do Araguaia -5108404 Boa Esperança do Norte +5108404 Boa Esperança do Norte 5101902 Brasnorte 5102504 Cáceres 5102603 Campinápolis From 26b9bc4c33f0fc810d15b851971e537b23554f88 Mon Sep 17 00:00:00 2001 From: Rodolfo Cavalcante Date: Tue, 1 Apr 2025 20:36:52 -0400 Subject: [PATCH 3/5] =?UTF-8?q?Inclui=20munic=C3=ADpio=20Boa=20Esperan?= =?UTF-8?q?=C3=A7a=20do=20Norte=20(MT)=20e=20testes=20relacionados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/data/MunIBGE/MunIBGE-UF51.txt | 6 +++--- tests/test_utils.py | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pynfe/data/MunIBGE/MunIBGE-UF51.txt b/pynfe/data/MunIBGE/MunIBGE-UF51.txt index e904e02b..be967d5b 100644 --- a/pynfe/data/MunIBGE/MunIBGE-UF51.txt +++ b/pynfe/data/MunIBGE/MunIBGE-UF51.txt @@ -15,8 +15,8 @@ 5101605 Barão de Melgaço 5101704 Barra do Bugres 5101803 Barra do Garças -5101852 Bom Jesus do Araguaia -5108404 Boa Esperança do Norte +5101837 Boa Esperança do Norte +5101852 Bom Jesus do Araguaia 5101902 Brasnorte 5102504 Cáceres 5102603 Campinápolis @@ -139,5 +139,5 @@ 5108808 Nova Guarita 5108857 Nova Marilândia 5108907 Nova Maringá -5108956 Nova Monte Verde +5108956 Nova Monte Verde diff --git a/tests/test_utils.py b/tests/test_utils.py index 459d5155..60d00aea 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -93,6 +93,11 @@ 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") + + # obter_codigo_por_municipio def test_obter_codigo_por_municipio_saopaulo_3550308(self): self.assertEqual(obter_codigo_por_municipio("São Paulo", "SP"), "3550308") From fa7bd5b49d9c0c6912cc8979bb6cf6611a363a41 Mon Sep 17 00:00:00 2001 From: Rodolfo Cavalcante Date: Tue, 1 Apr 2025 20:56:08 -0400 Subject: [PATCH 4/5] =?UTF-8?q?Corrige=20separador=20TAB=20na=20linha=20de?= =?UTF-8?q?=20Boa=20Esperan=C3=A7a=20do=20Norte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/data/MunIBGE/MunIBGE-UF51.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynfe/data/MunIBGE/MunIBGE-UF51.txt b/pynfe/data/MunIBGE/MunIBGE-UF51.txt index be967d5b..bdddbabb 100644 --- a/pynfe/data/MunIBGE/MunIBGE-UF51.txt +++ b/pynfe/data/MunIBGE/MunIBGE-UF51.txt @@ -15,7 +15,7 @@ 5101605 Barão de Melgaço 5101704 Barra do Bugres 5101803 Barra do Garças -5101837 Boa Esperança do Norte +5101837 Boa Esperança do Norte 5101852 Bom Jesus do Araguaia 5101902 Brasnorte 5102504 Cáceres From 8f67cccad74d3918cd8b89c37cd40cca726d9556 Mon Sep 17 00:00:00 2001 From: Rodolfo Cavalcante Date: Tue, 1 Apr 2025 21:52:15 -0400 Subject: [PATCH 5/5] =?UTF-8?q?Mensagem=20descrevendo=20a=20mudan=C3=A7a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 60d00aea..2e1fcad6 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -94,9 +94,7 @@ 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") - + self.assertEqual(normalizar_municipio("Boa Esperança do Norte"),"BOA ESPERANCA DO NORTE") # obter_codigo_por_municipio def test_obter_codigo_por_municipio_saopaulo_3550308(self):