Projet

Général

Profil

0002-payfip-set-min_time_between_transactions-to-20-minut.patch

Benjamin Dauvergne, 11 mars 2021 13:02

Télécharger (1,2 ko)

Voir les différences:

Subject: [PATCH 2/2] payfip: set min_time_between_transactions to 20 minutes
 (#49144)

 eopayment/payfip_ws.py  | 2 ++
 tests/test_payfip_ws.py | 4 ++++
 2 files changed, 6 insertions(+)
eopayment/payfip_ws.py
202 202
        ],
203 203
    }
204 204

  
205
    min_time_between_transactions = 60 * 20  # 20 minutes
206

  
205 207
    def __init__(self, *args, **kwargs):
206 208
        super(Payment, self).__init__(*args, **kwargs)
207 209
        wsdl_url = self.wsdl_url
tests/test_payfip_ws.py
480 480
        'url_notification': NOTIF_URL,
481 481
        'url_redirect': REDIRECT_URL,
482 482
    }
483

  
484

  
485
def test_get_min_time_between_transactions(backend):
486
    assert backend.get_min_time_between_transactions() == 20 * 60
483
-