From 8ba1310915f6813f0ca3e2dedc7a8e4304afb1cb Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Tue, 17 Jul 2018 11:57:49 +0530 Subject: [PATCH] [fix] Location test (#14921) --- erpnext/assets/doctype/location/test_location.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/assets/doctype/location/test_location.py b/erpnext/assets/doctype/location/test_location.py index dcb700990f..22d25b5e11 100644 --- a/erpnext/assets/doctype/location/test_location.py +++ b/erpnext/assets/doctype/location/test_location.py @@ -27,6 +27,7 @@ class TestLocation(unittest.TestCase): formatted_location_string = str(formatted_locations) test_location = frappe.get_doc('Location', 'Test Location Area') + test_location.save() self.assertEqual(formatted_location_string, str(json.loads(test_location.get('location'))['features'])) self.assertEqual(area, test_location.get('area'))