No functional changes, only rewrite the code with the api.v8 which more pythonic and smooth.
23 lines
743 B
Python
23 lines
743 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.mail.tests.common import TestMail
|
|
from odoo.addons.website_mail.controllers.main import WebsiteMail
|
|
from odoo.tools import mute_logger, email_split
|
|
|
|
|
|
class TestControllers(TestMail):
|
|
|
|
def test_00_subscribe(self):
|
|
# from odoo.addons.web.http import request
|
|
# print request
|
|
|
|
cr, uid = self.cr, self.uid
|
|
# context = { }
|
|
# email = 'Marcel Dupuis <marcel.dupuis@example.com>'
|
|
# website_mail = WebsiteMail()
|
|
|
|
# pid = website_mail._find_or_create_partner(email, context)
|
|
# partner = self.res_partner.browse(cr, uid, pid)
|
|
# print partner.name, partner.email
|