瀏覽代碼

[fix] make test records for dependencies for app tests (#4336)

version-14
Valmik 7 年之前
committed by Rushabh Mehta
父節點
當前提交
5aa676c688
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      frappe/test_runner.py

+ 5
- 0
frappe/test_runner.py 查看文件

@@ -198,6 +198,11 @@ def _add_test(app, path, filename, verbose, test_suite=None, ui_tests=False):
relative_path=relative_path.replace('/', '.'), module_name=filename[:-3])

module = importlib.import_module(module_name)

if hasattr(module, "test_dependencies"):
for doctype in module.test_dependencies:
make_test_records(doctype, verbose=verbose)

is_ui_test = True if hasattr(module, 'TestDriver') else False

if is_ui_test != ui_tests:


Loading…
取消
儲存