From 5bcd05aaba33d75e33c449863bc6ccff214ebe44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 24 Sep 2013 10:46:30 +0200 Subject: [PATCH] [ADD] website_event: added skeleton directories for doc and tests bzr revid: tde@openerp.com-20130924084630-p1lw7b9lj2ijqti3 --- addons/website_event/__openerp__.py | 25 ++++++++++++++-- addons/website_event/doc/changelog.rst | 9 ++++++ addons/website_event/doc/index.rst | 10 +++++++ addons/website_event/tests/__init__.py | 28 ++++++++++++++++++ .../website_event/tests/test_controllers.py | 29 +++++++++++++++++++ 5 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 addons/website_event/doc/changelog.rst create mode 100644 addons/website_event/doc/index.rst create mode 100644 addons/website_event/tests/__init__.py create mode 100644 addons/website_event/tests/test_controllers.py diff --git a/addons/website_event/__openerp__.py b/addons/website_event/__openerp__.py index 9a697d6f7c4..e13c8889a6c 100644 --- a/addons/website_event/__openerp__.py +++ b/addons/website_event/__openerp__.py @@ -1,11 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013-Today OpenERP SA (). +# +# 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 . +# +############################################################################## + { 'name': 'Online Events', 'category': 'Website', 'summary': 'Schedule, Promote and Sell Events', 'version': '1.0', 'description': """ -OpenERP Blog -============ +Online Events +============= """, 'author': 'OpenERP SA', diff --git a/addons/website_event/doc/changelog.rst b/addons/website_event/doc/changelog.rst new file mode 100644 index 00000000000..ac212494c7e --- /dev/null +++ b/addons/website_event/doc/changelog.rst @@ -0,0 +1,9 @@ +.. _changelog: + +Changelog +========= + +`trunk (saas-3)` +---------------- + + - created ``website_event`` diff --git a/addons/website_event/doc/index.rst b/addons/website_event/doc/index.rst new file mode 100644 index 00000000000..3edce4cc8f1 --- /dev/null +++ b/addons/website_event/doc/index.rst @@ -0,0 +1,10 @@ +Website Event Module documentation topics +''''''''''''''''''''''''''''''''''''''''' + +Changelog +''''''''' + +.. toctree:: + :maxdepth: 1 + + changelog.rst diff --git a/addons/website_event/tests/__init__.py b/addons/website_event/tests/__init__.py new file mode 100644 index 00000000000..97f1da2f54b --- /dev/null +++ b/addons/website_event/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_event/tests/test_controllers.py b/addons/website_event/tests/test_controllers.py new file mode 100644 index 00000000000..d1c28cab5af --- /dev/null +++ b/addons/website_event/tests/test_controllers.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013-Today OpenERP SA (). +# +# 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