FIX: Formateo PEP8, Test OK
This commit is contained in:
@@ -20,12 +20,10 @@ from fixtures import (
|
||||
simple_credit_note_without_lines,
|
||||
simple_debit_note_without_lines)
|
||||
|
||||
|
||||
CUDE_ = ('907e4444decc9e59'
|
||||
'160a2fb3b6659b33d'
|
||||
'c5b632a5008922b9a'
|
||||
'62f83f757b1c448e4'
|
||||
'7f5867f2b50dbdb96f48c7681168')
|
||||
try:
|
||||
CUDE_ = open("./tests/cude.txt", 'r').read().strip()
|
||||
except FileNotFoundError:
|
||||
raise Exception("Archivo Cude No encontrado")
|
||||
|
||||
CUFE_ = (
|
||||
'8bb918b19ba22a694f1da'
|
||||
@@ -116,7 +114,8 @@ def test_invoice_profileexecutionid(simple_invoice):
|
||||
|
||||
def test_invoice_invoice_type_code(simple_invoice):
|
||||
xml_invoice = DIANInvoiceXML(simple_invoice)
|
||||
id_ = xml_invoice.get_element_text('/fe:Invoice/cbc:InvoiceTypeCode', format_=int)
|
||||
id_ = xml_invoice.get_element_text(
|
||||
'/fe:Invoice/cbc:InvoiceTypeCode', format_=int)
|
||||
assert id_ == 1
|
||||
|
||||
|
||||
@@ -272,6 +271,7 @@ def test_credit_note_cude(simple_credit_note_without_lines):
|
||||
xml_invoice.add_extension(cude_extension)
|
||||
cude = xml_invoice.get_element_text('/fe:CreditNote/cbc:UUID')
|
||||
# pag 612
|
||||
|
||||
assert cude == CUDE_
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user