From dcb1c1170b834b23a2afad51ef39f5bb501a7a47 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Thu, 20 Dec 2018 12:56:36 +0530 Subject: [PATCH] fix(test): Add accidentally removed lines During release v10.1.68 these two lines were accidentally removed, add them back. --- frappe/core/doctype/report/test_report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/core/doctype/report/test_report.py b/frappe/core/doctype/report/test_report.py index a8b756804e..7e36f38c40 100644 --- a/frappe/core/doctype/report/test_report.py +++ b/frappe/core/doctype/report/test_report.py @@ -61,6 +61,8 @@ class TestReport(unittest.TestCase): with open(os.path.join(os.path.dirname(__file__), 'user_activity_report_without_sort.json'), 'r') as f: frappe.get_doc(json.loads(f.read())).insert() + report = frappe.get_doc('Report', 'User Activity Report Without Sort') + # this would raise an error without the fix added along with this test case columns, data = report.get_data() self.assertEqual(columns[0].get('label'), 'ID')