mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
18 lines
558 B
Python
18 lines
558 B
Python
|
# 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)
|