feature/pedimentos-corregidos
This commit is contained in:
@@ -8,9 +8,8 @@ def soap_error(soap_response): # Testeado
|
||||
Returns:
|
||||
bool: True si no hay errores, False en caso contrario
|
||||
"""
|
||||
if '<ns2:tieneError>true</ns2:tieneError>' in soap_response.text:
|
||||
return True
|
||||
if '<ns3:tieneError>true</ns3:tieneError>' in soap_response.text:
|
||||
# Cubre cualquier variante de namespace y capitalización (tieneError, TieneError, ns2:tieneError, etc.)
|
||||
if 'tieneerror>true<' in soap_response.text.lower():
|
||||
return True
|
||||
if "<mensaje>El Cove o Adenda no existe, no está firmado o no cuenta con la autorización para consultarlo</mensaje>" in soap_response.text:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user