Je n'ai pas modifié le with pour le moment et j'ai une syntax error sur mon full_address que je ne trouve pas.
This commit is contained in:
parent
525dda9f04
commit
58d6dec996
@ -33,11 +33,10 @@ class TestCoworkingCoworker(TransactionCase):
|
|||||||
def test_full_address(self):
|
def test_full_address(self):
|
||||||
""" Test full address rendering """
|
""" Test full address rendering """
|
||||||
full_contact_adress = fields.Char.from_string(self.homer.full_contact_adress)
|
full_contact_adress = fields.Char.from_string(self.homer.full_contact_adress)
|
||||||
self.assertEqual(full_contact_adress, {full_contact_adress = u'{} {} {}'.format (street or u'', contact_zip or u'', city or u'').strip()})
|
|
||||||
|
|
||||||
fulladdr = self.env{'street': '29 Grande rue', 'contact_zip': '26270', 'city': 'Loriol'}
|
full_address = self.env{'contact_zip': '26270', 'city': 'Loriol'}
|
||||||
|
|
||||||
self.assertEqual(fulladdr.full_contact_adress, '29 Grande rue 26270 Loriol')
|
self.assertEqual(full_address.full_contact_adress, '26270 Loriol')
|
||||||
|
|
||||||
with self.assertRaises(ValidationError) as err:
|
with self.assertRaises(ValidationError) as err:
|
||||||
fulladdr = {'street': '29 Grande rue',
|
fulladdr = {'street': '29 Grande rue',
|
||||||
|
Loading…
Reference in New Issue
Block a user