From 556b922d6680be9a5063102c2c4dd1d01e1ae9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Felipe=20Mil=C3=A9o?= Date: Tue, 16 Jul 2024 18:54:58 -0300 Subject: [PATCH] [FIX] tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luis Felipe Miléo --- .github/workflows/python-package.yml | 2 +- src/erpbrasil/edoc/pdf/danfe_formata.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 6cd9eca..0ce3153 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5", "3.8", "3.10"] + python-version: ["3.8", "3.10"] steps: - uses: actions/checkout@v4 diff --git a/src/erpbrasil/edoc/pdf/danfe_formata.py b/src/erpbrasil/edoc/pdf/danfe_formata.py index dfa5a5e..a1e4414 100644 --- a/src/erpbrasil/edoc/pdf/danfe_formata.py +++ b/src/erpbrasil/edoc/pdf/danfe_formata.py @@ -145,7 +145,7 @@ def formata_dhRecbto(dhRecbto): # FIXME em algum ponto o valor do campo esta sendo formatado para string # deveria ter um tratamento caso o valor seja None deveria retornar a string # vazia '' ao invés de retornar 'None' - if dhRecbto is 'None': + if dhRecbto == 'None': return '' else: dhRecbto = str(dhRecbto)