Ver a proveniência

[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
version-14
Makarand Bauskar há 8 anos
committed by GitHub
ascendente
cometimento
09a3a77ec2
2 ficheiros alterados com 2 adições e 4 eliminações
  1. +2
    -2
      frappe/custom/doctype/customize_form/test_customize_form.js
  2. +0
    -2
      frappe/utils/bench_helper.py

+ 2
- 2
frappe/custom/doctype/customize_form/test_customize_form.js Ver ficheiro

@@ -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()
]);
});

+ 0
- 2
frappe/utils/bench_helper.py Ver ficheiro

@@ -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 = {}


Carregando…
Cancelar
Guardar