From bef092ba195e72c2ffdc8d791e2a7ee491e23b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 23 Sep 2013 12:46:12 +0200 Subject: [PATCH] [ADD] website_mail: added skeleton for tests and doc bzr revid: tde@openerp.com-20130923104612-b1x1nk1izygvl9oi --- addons/website_mail/doc/changelog.rst | 9 ++++++ addons/website_mail/doc/index.rst | 10 +++++++ addons/website_mail/tests/__init__.py | 28 ++++++++++++++++++ addons/website_mail/tests/test_controllers.py | 29 +++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 addons/website_mail/doc/changelog.rst create mode 100644 addons/website_mail/doc/index.rst create mode 100644 addons/website_mail/tests/__init__.py create mode 100644 addons/website_mail/tests/test_controllers.py diff --git a/addons/website_mail/doc/changelog.rst b/addons/website_mail/doc/changelog.rst new file mode 100644 index 00000000000..fe2b38bad01 --- /dev/null +++ b/addons/website_mail/doc/changelog.rst @@ -0,0 +1,9 @@ +.. _changelog: + +Changelog +========= + +`trunk (saas-3)` +---------------- + + - created ``website_mail`` menu, holding website-related stuff about mail module diff --git a/addons/website_mail/doc/index.rst b/addons/website_mail/doc/index.rst new file mode 100644 index 00000000000..5b0999d8a6c --- /dev/null +++ b/addons/website_mail/doc/index.rst @@ -0,0 +1,10 @@ +Website Mail Module documentation topics +'''''''''''''''''''''''''''''''''''''''' + +Changelog +''''''''' + +.. toctree:: + :maxdepth: 1 + + changelog.rst diff --git a/addons/website_mail/tests/__init__.py b/addons/website_mail/tests/__init__.py new file mode 100644 index 00000000000..97f1da2f54b --- /dev/null +++ b/addons/website_mail/tests/__init__.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Business Applications +# Copyright (c) 20123TODAY OpenERP S.A. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp.addons.website_blog.tests import test_controllers + +checks = [ + test_controllers, +] + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/website_mail/tests/test_controllers.py b/addons/website_mail/tests/test_controllers.py new file mode 100644 index 00000000000..60ffa5ac9a3 --- /dev/null +++ b/addons/website_mail/tests/test_controllers.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Business Applications +# Copyright (c) 2013-TODAY OpenERP S.A. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp.addons.mail.tests.test_mail_base import TestMailBase +from openerp.tools import mute_logger, email_split + + +class TestControllers(TestMailBase): + + def test_00(self): + cr, uid = self.cr, self.uid