Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Dec 14, 2024
1 parent 82754b9 commit 3c27a01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions django_payments_chile/FlowProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ def get_form(self, payment, data: Optional[dict] = None) -> Any:
try:
payment.attrs.datos_payment_create_flow = datos_para_flow
payment.save()
except Exception as e:
raise PaymentError(f"Ocurrió un error al guardar attrs.datos_flow: {e}")
except Exception as e: # noqa
# Dificil llegar acá, y si llegamos es problema de django-payments
raise PaymentError(f"Ocurrió un error al guardar attrs.datos_flow: {e}") # noqa

firma_datos = ...
datos_para_flow.update({"s": firma_datos})
Expand Down Expand Up @@ -228,7 +229,7 @@ def capture(self):
Raises:
NotImplementedError: Método no implementado.
"""
raise NotImplementedError()
raise NotImplementedError() # noqa

def release(self):
"""
Expand All @@ -241,4 +242,4 @@ def release(self):
NotImplementedError: Método no implementado.
"""
raise NotImplementedError()
raise NotImplementedError() # noqa
2 changes: 1 addition & 1 deletion django_payments_chile/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# from .KhipuProvider import KhipuProvider # noqa
# from .PaykuProvider import PaykuProvider # noqa

__all__ = ["FlowProvider"]
__all__ = ["FlowProvider"] # noqa

0 comments on commit 3c27a01

Please sign in to comment.