partner-contact/partner_disable_gravatar/tests/test_partner_disable_gravatar.py

12 lines
384 B
Python
Raw Normal View History

2025-02-06 11:07:14 +01:00
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from flectra.tests import Form, common
class TestPartnerDisableGravatar(common.TransactionCase):
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)