Skip to content

Commit

Permalink
[REF] l10n_br_nfe: use xsdata evento binding
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Jul 2, 2024
1 parent b224dd8 commit b41f088
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions l10n_br_nfe/tests/test_nfe_mde.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from erpbrasil.edoc.resposta import analisar_retorno_raw
from nfelib.nfe.ws.edoc_legacy import DocumentoElectronicoAdapter
from nfelib.v4_00 import retEnvEvento
from nfelib.nfe_evento_generico.bindings.v1_0.ret_env_evento_v1_00 import RetEnvEvento

from odoo.exceptions import ValidationError
from odoo.tests.common import SavepointCase
Expand Down Expand Up @@ -43,7 +43,7 @@ def mocked_post_confirmacao(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_confirmacao_operacao),
retEnvEvento,
RetEnvEvento,
)


Expand All @@ -53,7 +53,7 @@ def mocked_post_confirmacao_status_code_error(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_confirmacao_operacao, status_code="500"),
retEnvEvento,
RetEnvEvento,
)


Expand All @@ -63,7 +63,7 @@ def mocked_post_confirmacao_invalid_status_error(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_confirmacao_operacao_rejeicao),
retEnvEvento,
RetEnvEvento,
)


Expand All @@ -73,7 +73,7 @@ def mocked_post_ciencia(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_ciencia_operacao),
retEnvEvento,
RetEnvEvento,
)


Expand All @@ -83,7 +83,7 @@ def mocked_post_desconhecimento(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_desconhecimento_operacao),
retEnvEvento,
RetEnvEvento,
)


Expand All @@ -93,7 +93,7 @@ def mocked_post_nao_realizada(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_operacao_nao_realizada),
retEnvEvento,
RetEnvEvento,
)


Expand Down

0 comments on commit b41f088

Please sign in to comment.