From 7e54c0a38afba9a857b5e89eb101e5f1e0137f73 Mon Sep 17 00:00:00 2001 From: geomer198 Date: Tue, 13 Jun 2023 15:31:44 +0300 Subject: [PATCH] [FIX] partner_restrict_payment_acquirer: Tests changed. --- .../tests/test_payment_acquirer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/partner_restrict_payment_acquirer/tests/test_payment_acquirer.py b/partner_restrict_payment_acquirer/tests/test_payment_acquirer.py index d4ccb2fecad4..89f0fccce595 100644 --- a/partner_restrict_payment_acquirer/tests/test_payment_acquirer.py +++ b/partner_restrict_payment_acquirer/tests/test_payment_acquirer.py @@ -38,9 +38,9 @@ def test_get_allowed_acquirers_order(self): {"allowed_acquirer_ids": [(4, self.wire_transfer.id)]} ) customer_acquirers = self.res_partner_gemini.allowed_acquirer_ids - self.assertEqual( - customer_acquirers, + self.assertIn( self.wire_transfer, + customer_acquirers, msg="Customer acquirers must be contain 'Wire Transfer'", ) acquirers = payment_acquirer_obj.get_allowed_acquirers( @@ -68,9 +68,9 @@ def test_get_allowed_acquirers_invoice(self): {"allowed_acquirer_ids": [(4, self.wire_transfer.id)]} ) customer_acquirers = self.res_partner_deco.allowed_acquirer_ids - self.assertEqual( - customer_acquirers, + self.assertIn( self.wire_transfer, + customer_acquirers, msg="Customer acquirers must be contain 'Wire Transfer'", ) acquirers = payment_acquirer_obj.get_allowed_acquirers(