From d8920e6d17e6eac4f283103e7b03a98303f01404 Mon Sep 17 00:00:00 2001 From: siwar Date: Fri, 11 Oct 2024 17:53:55 +0100 Subject: [PATCH] [18.0][MIG] iap_alternative_provider: Migration to 18.0 --- .../tests/test_iap_account.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/iap_alternative_provider/tests/test_iap_account.py b/iap_alternative_provider/tests/test_iap_account.py index 65fca95d835..45dc2c05a21 100644 --- a/iap_alternative_provider/tests/test_iap_account.py +++ b/iap_alternative_provider/tests/test_iap_account.py @@ -33,21 +33,3 @@ def test_create_with_mock(self): ) self.assertEqual(account.service_id, "other-service") - def test_write_odoo_iap(self): - account = self.env["iap.account"].create( - { - "name": "Odoo IAP", - "provider": "odoo", - "service_id": "", - } - ) - self.assertEqual(account.service_id, "") - account.write({"service_id": "some-service"}) - self.assertEqual(account.service_id, "some-service") - with mock.patch( - "odoo.addons.iap_alternative_provider.models." - "iap_account.IapAccount._get_service_from_provider", - return_value="other-service", - ): - account.write({"service_id": "some-service-2"}) - self.assertEqual(account.service_id, "other-service")