summaryrefslogtreecommitdiff
path: root/addons/website_event/tests/test_controllers.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-09-24 15:05:17 +0200
committerThibault Delavallée <tde@openerp.com>2013-09-24 15:05:17 +0200
commit0c040ae2370d36f560dbcbce794ce3c3bdb72bb2 (patch)
tree5261996256bc4fa981f9ac5d2038bce1ef02e7e2 /addons/website_event/tests/test_controllers.py
parentf181f21cf47c314b2cfec58f7c831d3e9a1897ee (diff)
parent39726ffe2d8041a0b8b15bcc97b324a96d1fe64f (diff)
[MERGE] [IMP] [DEMO] event, website_event improvements
[IMP] [DEMO] event: cleaned demo data. Also renamed note field into description, and moved it out of groups_noone, in order to effectively use it to hold the html description of the event. [IMP] event_sale: cleaned demo data [ADD] website_mail: added mail_thread file that hold website_message_ids field, holding published comments. Use it for public objects. However as inheritance seems to be still buggy, this field is redefined in website_blog and website_event (at least) to be able to use it. Remove specific declarations when the bug is fixed. [IMP] [ADD] website_event: - added skeleton directory for doc - added skeleton directory for tests - added dependency towards website_mail module, to benefit from follow feature - cleaned demo data - use website_mail for follow / unfollow mechanism - added website_message_ids field, use it in view - some improvements in website view (title, event description) [FIX] website_sales: somewhat fixed partner information fetch in checkout; whole code of those controllers is really obfuscated and very dubious. bzr revid: tde@openerp.com-20130924130517-hzi2qm108ec65viq
Diffstat (limited to 'addons/website_event/tests/test_controllers.py')
-rw-r--r--addons/website_event/tests/test_controllers.py29
1 files changed, 29 insertions, 0 deletions
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 (<http://www.openerp.com>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+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