From 34efb130936205b38713f15226213ee5be46727c Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 4 Dec 2017 14:52:48 +0100 Subject: [PATCH] Structure de test event --- coworking_event/tests/__init__.py | 3 +++ coworking_event/tests/test_coworking_event.py | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 coworking_event/tests/__init__.py create mode 100644 coworking_event/tests/test_coworking_event.py diff --git a/coworking_event/tests/__init__.py b/coworking_event/tests/__init__.py new file mode 100644 index 0000000..ddce860 --- /dev/null +++ b/coworking_event/tests/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import test_coworking_event diff --git a/coworking_event/tests/test_coworking_event.py b/coworking_event/tests/test_coworking_event.py new file mode 100644 index 0000000..2018387 --- /dev/null +++ b/coworking_event/tests/test_coworking_event.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +""" Coworking cowoker testing module """ + +from datetime import date +from odoo import fields +from odoo.exceptions import ValidationError +from odoo.tests.common import TransactionCase + +class TestCoworkingEvent(TransactionCase): + """ Coworking cowoker testing """ + + def setUp(self, *args, **kwargs): + """ Bootstrap testing """ + super(TestCoworkingCoworker, self).setUp(*args, **kwargs) + data = {'name': 'Homer Simpson', 'is_coworker': True} + self.homer = self.env['res.partner'].create(data) + + def test_contact_date(self): +