From c7fff34cf5930f5b81f9eb6734e429e162ba4555 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Wed, 10 Mar 2021 15:51:44 +0530 Subject: [PATCH] fix(travis): Customer Testcase Failing (#24833) --- erpnext/selling/doctype/customer/test_customer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/customer/test_customer.py b/erpnext/selling/doctype/customer/test_customer.py index 87fdaa366f..7761aa70fb 100644 --- a/erpnext/selling/doctype/customer/test_customer.py +++ b/erpnext/selling/doctype/customer/test_customer.py @@ -54,7 +54,11 @@ class TestCustomer(unittest.TestCase): details = get_party_details("_Test Customer") 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): from erpnext.accounts.party import get_party_details