partner-contact/partner_disable_gravatar/tests/test_partner_disable_gravatar.py

18 lines
558 B
Python
Raw Permalink Normal View History

2021-08-01 02:13:14 +00:00
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from flectra.tests import Form, common
class TestPartnerDisableGravatar(common.TransactionCase):
# https://github.com/flectra/flectra/blob/
# 28034c48c024284ea3bd6248451e186132aca4d0/flectra/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)