Skip to content

Commit

Permalink
[IMP] l10n_br_fiscal_dfe: use xsdata bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Jul 2, 2024
1 parent 90e425c commit a90765f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions l10n_br_fiscal_dfe/tests/test_dfe.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 retDistDFeInt
from nfelib.nfe_dist_dfe.bindings.v1_0.ret_dist_dfe_int_v1_01 import RetDistDfeInt

from odoo.tests.common import SavepointCase

Expand Down Expand Up @@ -36,7 +36,7 @@ def mocked_post_success_multiple(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_sucesso_multiplos),
retDistDFeInt,
RetDistDfeInt,
)


Expand All @@ -46,7 +46,7 @@ def mocked_post_success_single(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_sucesso_individual),
retDistDFeInt,
RetDistDfeInt,
)


Expand All @@ -56,7 +56,7 @@ def mocked_post_error_rejection(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_rejeicao),
retDistDFeInt,
RetDistDfeInt,
)


Expand All @@ -66,7 +66,7 @@ def mocked_post_error_status_code(*args, **kwargs):
object(),
b"<fake_post/>",
FakeRetorno(response_rejeicao, status_code=500),
retDistDFeInt,
RetDistDfeInt,
)


Expand Down

0 comments on commit a90765f

Please sign in to comment.