diff options
| author | Ravi Gohil <rgo@odoo.com> | 2016-06-16 10:38:27 +0530 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2016-06-30 14:41:22 +0200 |
| commit | f077a6c7bdc4cec514eecd309cad02f0f14da5bb (patch) | |
| tree | 7d7314679d785e68e1b3f165765f719142117ef7 /addons/project/tests/test_project_flow.py | |
| parent | 25dcc5e03cb3a54232431cfc403eb1950eba131d (diff) | |
[IMP] project: replaced except_orm by AccessError in tests
Comments were referring to Warning rather than AccessError but:
- Warning is deprecated
- The functions that are tested actually raise AccessError
Diffstat (limited to 'addons/project/tests/test_project_flow.py')
| -rw-r--r-- | addons/project/tests/test_project_flow.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/project/tests/test_project_flow.py b/addons/project/tests/test_project_flow.py index 36b5c41c9b7..b928331d388 100644 --- a/addons/project/tests/test_project_flow.py +++ b/addons/project/tests/test_project_flow.py @@ -2,8 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from .test_project_base import TestProjectBase -from openerp.exceptions import AccessError -from openerp.tools import mute_logger +from odoo.tools import mute_logger EMAIL_TPL = """Return-Path: <whatever-2a840@postmaster.twitter.com> @@ -11,7 +10,7 @@ X-Original-To: {to} Delivered-To: {to} To: {to} cc: {cc} -Received: by mail1.openerp.com (Postfix, from userid 10002) +Received: by mail1.odoo.com (Postfix, from userid 10002) id 5DF9ABFB2A; Fri, 10 Aug 2012 16:16:39 +0200 (CEST) Message-ID: {msg_id} Date: Tue, 29 Nov 2011 12:43:21 +0530 |
