You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
546 B

  1. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  2. from odoo.tests import Form, common
  3. class TestPartnerDisableGravatar(common.TransactionCase):
  4. # https://github.com/odoo/odoo/blob/
  5. # 28034c48c024284ea3bd6248451e186132aca4d0/odoo/tests/common.py#L407
  6. def patch(self, obj, key, val):
  7. pass
  8. def test_disable_gravatar(self):
  9. with Form(self.env["res.partner"]) as f1:
  10. f1.name = "Support Gravatar"
  11. f1.email = "support@gravatar.com"
  12. self.assertFalse(f1.image_1920)