The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 6d728c4d authored by Baptiste Delpey's avatar Baptiste Delpey Committed by Romain Bignon

sometimes, sending account id of transfer not present in recap

check for the label instead in this case
parent d72c95a5
Pipeline #105 failed with stages
in 9 minutes and 5 seconds
......@@ -140,7 +140,7 @@ def handle_response(self, account, recipient, amount, reason):
account_txt = CleanText('//form//dl/dt[span[contains(text(), "biter")]]/following::dd[1]', replace=[(' ', '')])(self.doc)
recipient_txt = CleanText('//form//dl/dt[span[contains(text(), "diter")]]/following::dd[1]', replace=[(' ', '')])(self.doc)
try:
assert account.id in account_txt
assert account.id in account_txt or ''.join(account.label.split()) == account_txt
assert recipient.id in recipient_txt
except AssertionError:
raise TransferError('Something went wrong')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment