Ver código fonte

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

version-14
Valmik 7 anos atrás
committed by Rushabh Mehta
pai
commit
5aa676c688
1 arquivos alterados com 5 adições e 0 exclusões
  1. +5
    -0
      frappe/test_runner.py

+ 5
- 0
frappe/test_runner.py Ver arquivo

@@ -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:


Carregando…
Cancelar
Salvar