[DEL] mail: removed test file about aliases, as finally no changes were done to the alias model.
bzr revid: tde@openerp.com-20130329102200-a3v3p6w4ivgvsuv2
This commit is contained in:
@@ -19,11 +19,10 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from . import test_mail_message, test_mail_features, test_mail_gateway, test_message_read, test_invite, test_mail_alias
|
||||
from . import test_mail_message, test_mail_features, test_mail_gateway, test_message_read, test_invite
|
||||
|
||||
checks = [
|
||||
test_mail_message,
|
||||
test_mail_alias,
|
||||
test_mail_features,
|
||||
test_mail_gateway,
|
||||
test_message_read,
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Business Applications
|
||||
# Copyright (c) 2012-TODAY OpenERP S.A. <http://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.tools import mute_logger
|
||||
from openerp.tests import common
|
||||
|
||||
class test_mail_alias(common.TransactionCase):
|
||||
|
||||
def setUp(self):
|
||||
super(test_mail_alias, self).setUp()
|
||||
cr, uid = self.cr, self.uid
|
||||
|
||||
# Usefull models
|
||||
self.ir_model = self.registry('ir.model')
|
||||
self.mail_alias = self.registry('mail.alias')
|
||||
|
||||
#@mute_logger('openerp.addons.base.ir.ir_model', 'openerp.osv.orm')
|
||||
def test_00_mail_alias(self):
|
||||
""" Testing mail_group access rights and basic mail_thread features """
|
||||
cr, uid = self.cr, self.uid
|
||||
|
||||
alias_name_0 = "global+alias+test_0"
|
||||
alias_name_1 = "document+alias+test_1"
|
||||
alias_defaults_1 = {'field_pigs': 11}
|
||||
alias_name_2 = "document+alias+test_2"
|
||||
alias_defaults_2 = {'field_pigs': 112}
|
||||
|
||||
# Create an alias
|
||||
partner_model_id = self.ir_model.search(cr, uid, [('model', '=', 'mail.alias')])[0]
|
||||
alias_id_0 = self.mail_alias.create(cr, uid,
|
||||
{'alias_model_id': partner_model_id, 'alias_name': alias_name_0, 'alias_defaults': {}})
|
||||
alias_id_1 = self.mail_alias.create(cr, uid,
|
||||
{'alias_model_id': partner_model_id, 'alias_name': alias_name_1, 'alias_defaults': alias_defaults_1})
|
||||
alias_id_2 = self.mail_alias.create(cr, uid,
|
||||
{'alias_model_id': partner_model_id, 'alias_name': alias_name_2, 'alias_defaults': alias_defaults_2})
|
||||
Reference in New Issue
Block a user