Skip to content

Commit

Permalink
Add test for shipping address with empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed Feb 12, 2016
1 parent b5cabce commit 205ccfe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions partner_firstname/tests/test_empty.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@ def tearDown(self):
class AddressCase(TransactionCase):
"""Test ``res.partner`` when it is a address."""

def test_new_empty_address(self):
"""Create an empty partner."""
def test_new_empty_invoice_address(self):
"""Create an invoice patner without name."""
self.original = self.env["res.partner"].create({
"is_company": False,
"type": 'invoice',
"lastname": "",
"firstname": ""})

def test_new_empty_shipping_address(self):
"""Create an shipping patner without name."""
self.original = self.env["res.partner"].create({
"is_company": False,
"type": 'delivery',
"lastname": "",
"firstname": ""})

0 comments on commit 205ccfe

Please sign in to comment.