Skip to content

Commit

Permalink
[18.0][MIG] iap_alternative_provider: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BTsiwar committed Oct 11, 2024
1 parent 31f4224 commit d8920e6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions iap_alternative_provider/tests/test_iap_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit d8920e6

Please sign in to comment.