Skip to content

Commit

Permalink
[REF] l10n_br_nfe: Unnecessary parameter, necessary for the new versi…
Browse files Browse the repository at this point in the history
…on of pre-commit.
  • Loading branch information
mbcosta committed Oct 26, 2023
1 parent e32472b commit 784cda6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_br_nfe/tests/test_nfce.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
response_contingency = """<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><nfeResultMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4"><retEnviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="4.00"><tpAmb>2</tpAmb><verAplic>4.0.0</verAplic><cStat>108</cStat><xMotivo>Rejeição: Duplicidade de NF-e</xMotivo><cUF>33</cUF><dhRecbto>2023-08-08T10:30:00-03:00</dhRecbto><infRec><nRec>123456789012345</nRec><tMed>1</tMed></infRec></retEnviNFe></nfeResultMsg></soap:Body></soap:Envelope>"""


class FakeRetorno(object):
class FakeRetorno:
def __init__(self, text):
self.text = text
self.content = text.encode("utf-8")
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_nfe/tests/test_nfe_mde.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
response_operacao_nao_realizada = """<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><nfeResultMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4"><retEnvEvento xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00"><idLote /><tpAmb>2</tpAmb><verAplic>SVRS202305251555</verAplic><cStat>135</cStat><retEvento versao="1.00"><infEvento><tpAmb>2</tpAmb><verAplic>SVRS202305251555</verAplic><cStat>135</cStat><xMotivo>Teste Operação não Realizada.</xMotivo><chNFe>31201010588201000105550010038421171838422178</chNFe><tpEvento>210240</tpEvento><xEvento>Operacao nao Realizada registrada</xEvento><nSeqEvento>1</nSeqEvento><CNPJDest>81583054000129</CNPJDest><dhRegEvento>2023-07-10T10:00:00-03:00</dhRegEvento></infEvento></retEvento></retEnvEvento></nfeResultMsg></soap:Body></soap:Envelope>"""


class FakeRetorno(object):
class FakeRetorno:
def __init__(self, text, status_code=200):
self.text = text
self.content = text.encode("utf-8")
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_nfe/tests/test_nfe_webservices.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def is_libreoffice_command_available():
return False


class FakeRetorno(object):
class FakeRetorno:
def __init__(self, text):
self.text = text
self.content = text.encode("utf-8")
Expand Down

0 comments on commit 784cda6

Please sign in to comment.