Merge pull request #13478 from ankush/implicit_commit_tests

fix: test failure due to uncommited transaction
This commit is contained in:
mergify[bot] 2021-06-14 11:28:19 +00:00 committed by GitHub
commit cb4f36a546
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,6 +175,7 @@ def run_tests_for_module(module, verbose=False, tests=(), profile=False, junit_x
for doctype in module.test_dependencies:
make_test_records(doctype, verbose=verbose)
frappe.db.commit()
return _run_unittest(module, verbose=verbose, tests=tests, profile=profile, junit_xml_output=junit_xml_output)
def _run_unittest(modules, verbose=False, tests=(), profile=False, junit_xml_output=False):