Skip to content

Commit

Permalink
Início da estrutura dos testes unitários
Browse files Browse the repository at this point in the history
  • Loading branch information
leogregianin committed Jan 14, 2022
1 parent a54de70 commit a49587b
Show file tree
Hide file tree
Showing 28 changed files with 357 additions and 3,417 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Biblioteca de interface com os webservices de Nota Fiscal Eletrônica (NF-e) e N
- A NFC-e visa substituir as notas fiscais modelo 2 e cupom fiscal emitido por ECF.
- NFS-e padrão Abrasf para autorizadores Ginfes e Betha.

Atualizado para a versão 4.00 NF-e/NFC-e
Suporte a Python >=3.6
* Atualizado para a versão 4.00 NF-e/NFC-e
* Suporte a Python >=3.6


Dependências
Expand Down Expand Up @@ -82,6 +82,15 @@ xml = con.status_servico('nfe')
print(xml.text)
```


Testes
-----------

```sh
python -m unittest
```


Documentação
-----------
- https://github.com/TadaSoftware/PyNFe/wiki
Expand Down
2 changes: 1 addition & 1 deletion pynfe/processamento/serializacao.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ def _serializar_nota_fiscal(self, nota_fiscal, tag_raiz='infNFe', retorna_string
# Apenas NF-e
if nota_fiscal.modelo == 55:
if nota_fiscal.notas_fiscais_referenciadas:
nfref = etree.SubElement(ide, 'NFref')
for refNFe in nota_fiscal.notas_fiscais_referenciadas:
nfref = etree.SubElement(ide, 'NFref')
etree.SubElement(nfref, 'refNFe').text = refNFe.chave_acesso

### CONTINGENCIA ###
Expand Down
95 changes: 0 additions & 95 deletions run_fake_soap_server.py

This file was deleted.

30 changes: 0 additions & 30 deletions run_tests.py

This file was deleted.

123 changes: 0 additions & 123 deletions test.py

This file was deleted.

Loading

0 comments on commit a49587b

Please sign in to comment.