From 590ab0ce40edf5f7408140e4f2bda4a2cbd8d16a Mon Sep 17 00:00:00 2001 From: "Richard Mathot (OpenERP)" Date: Mon, 17 Mar 2014 14:37:08 +0100 Subject: [PATCH] [ADD] Test skeleton bzr revid: rim@openerp.com-20140317133708-5aa7rtcgzg8bbhtm --- .../test/{survey_test.py => __init__.py} | 8 ++-- addons/survey/test/test_survey.py | 40 +++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) rename addons/survey/test/{survey_test.py => __init__.py} (90%) create mode 100644 addons/survey/test/test_survey.py diff --git a/addons/survey/test/survey_test.py b/addons/survey/test/__init__.py similarity index 90% rename from addons/survey/test/survey_test.py rename to addons/survey/test/__init__.py index ea9001a2421..b2a1a5accf2 100644 --- a/addons/survey/test/survey_test.py +++ b/addons/survey/test/__init__.py @@ -19,9 +19,9 @@ # ############################################################################## -#from openerp.osv.orm import except_orm -#from openerp.tools import mute_logger +from . import test_survey -class test_survey(): - pass +checks = [ + test_survey +] diff --git a/addons/survey/test/test_survey.py b/addons/survey/test/test_survey.py new file mode 100644 index 00000000000..c3a3f4459af --- /dev/null +++ b/addons/survey/test/test_survey.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Business Applications +# Copyright (c) 2014-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.tests import common + + +class test_survey(common.TransactionCase): + + def setUp(self): + super(test_survey, self).setUp() + cr, uid, context = self.cr, self.uid, {} + pass + + def test_00_create_survey_and_questions(self): + cr, uid, context = self.cr, self.uid, {} + pass + + def test_01_fill_survey(self): + pass + + def test_02_answer_survey(self): + pass