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

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