From 09a3a77ec25692e9affb0cd9671909a1e76fe21e Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Thu, 3 Aug 2017 11:30:06 +0530 Subject: [PATCH] [revert] Print traceback on ImportError in get_app_commands (#3846) * [revert] Print traceback on ImportError in get_app_commands * [tests] fixed the customize form test cases --- frappe/custom/doctype/customize_form/test_customize_form.js | 4 ++-- frappe/utils/bench_helper.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frappe/custom/doctype/customize_form/test_customize_form.js b/frappe/custom/doctype/customize_form/test_customize_form.js index 144d11a9ae..fd2c3bf4d5 100644 --- a/frappe/custom/doctype/customize_form/test_customize_form.js +++ b/frappe/custom/doctype/customize_form/test_customize_form.js @@ -11,7 +11,7 @@ QUnit.test("test customize form", function(assert) { () => frappe.timeout(2), - () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status'), + () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status', "Status Field"), // open "status" row () => cur_frm.fields_dict.fields.grid.grid_rows[1].toggle_view(), @@ -25,7 +25,7 @@ QUnit.test("test customize form", function(assert) { () => frappe.timeout(0.5), // status still exists - () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status'), + () => assert.equal(cur_frm.doc.fields[1].fieldname, 'status', "Status Field Still Exists"), () => done() ]); }); diff --git a/frappe/utils/bench_helper.py b/frappe/utils/bench_helper.py index 6cdcc16fa0..32a782a3dd 100644 --- a/frappe/utils/bench_helper.py +++ b/frappe/utils/bench_helper.py @@ -5,7 +5,6 @@ import os import json import importlib import frappe.utils -import traceback click.disable_unicode_literals_warning = True @@ -63,7 +62,6 @@ def get_app_commands(app): try: app_command_module = importlib.import_module(app + '.commands') except ImportError: - traceback.print_exc() return [] ret = {}