style(test_query): Formateado PEP8
This commit is contained in:
parent
f08954ee43
commit
e7a3976b14
@ -3,22 +3,27 @@
|
|||||||
# This file is part of facho. The COPYRIGHT file at the top level of
|
# This file is part of facho. The COPYRIGHT file at the top level of
|
||||||
# this repository contains the full copyright notices and license terms.
|
# this repository contains the full copyright notices and license terms.
|
||||||
|
|
||||||
import pytest
|
# import pytest
|
||||||
|
|
||||||
import facho.fe.form as form
|
import facho.fe.form as form
|
||||||
from facho import fe
|
from facho import fe
|
||||||
from facho.fe.form_xml import DIANInvoiceXML, DIANCreditNoteXML, DIANDebitNoteXML
|
|
||||||
|
|
||||||
from fixtures import *
|
from facho.fe.form_xml import DIANInvoiceXML
|
||||||
|
# from facho.fe.form_xml import (
|
||||||
|
# DIANInvoiceXML, DIANCreditNoteXML, DIANDebitNoteXML)
|
||||||
|
|
||||||
|
# from fixtures import *
|
||||||
|
|
||||||
from facho.fe.form import query
|
from facho.fe.form import query
|
||||||
|
|
||||||
|
|
||||||
def test_query_billing_reference(simple_invoice):
|
def test_query_billing_reference(simple_invoice):
|
||||||
|
raise Exception(simple_invoice)
|
||||||
xml = DIANInvoiceXML(simple_invoice)
|
xml = DIANInvoiceXML(simple_invoice)
|
||||||
cufe_extension = fe.DianXMLExtensionCUFE(simple_invoice)
|
cufe_extension = fe.DianXMLExtensionCUFE(simple_invoice)
|
||||||
xml.add_extension(cufe_extension)
|
xml.add_extension(cufe_extension)
|
||||||
out = xml.tostring()
|
out = xml.tostring()
|
||||||
|
|
||||||
reference = query.billing_reference(out, form.BillingReference)
|
reference = query.billing_reference(out, form.BillingReference)
|
||||||
assert isinstance(reference, form.BillingReference)
|
assert isinstance(reference, form.BillingReference)
|
||||||
assert reference.ident != ''
|
assert reference.ident != ''
|
||||||
|
Loading…
Reference in New Issue
Block a user