fix(travis): Customer Testcase Failing (#24833)

This commit is contained in:
Rucha Mahabal 2021-03-10 15:51:44 +05:30 committed by GitHub
parent a0e7787f7b
commit c7fff34cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,11 @@ class TestCustomer(unittest.TestCase):
details = get_party_details("_Test Customer") details = get_party_details("_Test Customer")
for key, value in iteritems(to_check): for key, value in iteritems(to_check):
self.assertEqual(value, details.get(key)) val = details.get(key)
if not val and not isinstance(val, list):
val = None
self.assertEqual(value, val)
def test_party_details_tax_category(self): def test_party_details_tax_category(self):
from erpnext.accounts.party import get_party_details from erpnext.accounts.party import get_party_details