mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
It is possible that, when making the request to the requisitions endpoint, the IBAN bank account comes with a lower alphanumeric string. When comparing with the sanitized bank account (stored with upper) fails. self.journal_id.bank_account_id.sanitized_acc_number == account_data["iban"] to self.journal_id.bank_account_id.sanitized_acc_number == account_data["iban"].upper() Refactor method _gocardless_finish_requisition to be able to mock the requests made inside and create a unit test. Refactor requests methods.