From 1fbfbb24ac4f592b77d2f5e1fecb763727618787 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Tue, 20 Jun 2017 07:35:02 +0200 Subject: [PATCH] [IMP]GOLEM Season tests update to v10 --- golem_season/tests/test_golem_season.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/golem_season/tests/test_golem_season.py b/golem_season/tests/test_golem_season.py index cad7165..4dfe9aa 100644 --- a/golem_season/tests/test_golem_season.py +++ b/golem_season/tests/test_golem_season.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2016 Fabien Bourgeois +# Copyright 2017 Fabien Bourgeois # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -15,14 +15,17 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from openerp.tests.common import TransactionCase -from openerp.models import ValidationError +""" GOLEM season testing """ +from odoo.tests.common import TransactionCase +from odoo.models import ValidationError -class GolemSeasonTestCase(TransactionCase): +class TestGolemSeason(TransactionCase): + """ GOLEM season testing """ - def setUp(self): - super(GolemSeasonTestCase, self).setUp() + def setUp(self, *args, **kwargs): + """ Bootstrap res partner sale sector """ + super(TestGolemSeason, self).setUp(*args, **kwargs) self.season_model = self.env['golem.season'].sudo() def test_season_default(self):