From 3cf2ff0ebcdfabab01c9f90a0b25228bb5bd0247 Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 30 Nov 2017 17:57:25 +0100 Subject: [PATCH] Ajout de la variable address --- coworking_coworker/tests/test_coworking_coworker.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/coworking_coworker/tests/test_coworking_coworker.py b/coworking_coworker/tests/test_coworking_coworker.py index b662138..05c37f1 100644 --- a/coworking_coworker/tests/test_coworking_coworker.py +++ b/coworking_coworker/tests/test_coworking_coworker.py @@ -36,10 +36,13 @@ class TestCoworkingCoworker(TransactionCase): def test_full_address(self): """ Test full address rendering """ - full_contact_adress = fields.Char.from_sting(self.rue.full_contact_adress) - self.assertEqual(street, contact_zip, city) + full_contact_adress = fields.Char.from_string(self.rue.full_contact_adress) + self.assertEqual(full_contact_adress) + + address = self.env['coworking.coworker'].create({ + 'street': '29 Grande rue', 'contact_zip': '26270', 'city': 'Loriol'}) + - pass def test_manage_coworker_type(self): """ Test that non-coworker have not coworker_type fixed """