Se agregaron estados y update a cada una de las tareas

This commit is contained in:
2025-10-12 07:53:05 -06:00
parent 770e0a4d13
commit 62a7f67b23
17 changed files with 640 additions and 229 deletions

View File

@@ -24,6 +24,24 @@ def soap_error(soap_response): # Testeado
return True
if "<ns2:mensaje>No hay información para la búsqueda solicitada</ns2:mensaje>" in soap_response.text:
return True
if "<descripcion>El RFC no tiene relación con el eDocument. </descripcion>" in soap_response.text:
return True
if "<error>Firma Electrónica : El RFC del usuario es distinto al del certificado.</error>" in soap_response.text:
return True
if "<error>Firma Electrónica : Firma inválida</error>" in soap_response.text:
return True
if "<error>Firma Electrónica : El certificado ha expirado.</error>" in soap_response.text:
return True
if "<error>Firma Electrónica : El certificado ha sido revocado.</error>" in soap_response.text:
return True
if "<error>Firma Electrónica : El certificado no es válido.</error>" in soap_response.text:
return True
if "<error>Firma Electrónica : No se encontró el certificado.</error>" in soap_response.text:
return True
if "<error>Firma Electrónica : Error al procesar la firma electrónica.</error>" in soap_response.text:
return True
if "<mensaje>unexpected XML tag. expected: {http://tempuri.org/}ConsultaPartidaResponse but found: {http://tempuri.org/}consultaPedimentoResponse</mensaje>" in soap_response.text:
return True
# Aquí podrías agregar más lógica para verificar errores específicos en el XML
return False