[test-runner] fix
This commit is contained in:
parent
af08e9629c
commit
da9530815a
1 changed files with 2 additions and 2 deletions
|
|
@ -137,9 +137,9 @@ def make_test_records(doctype, verbose=0, force=False):
|
|||
if options == "[Select]":
|
||||
continue
|
||||
|
||||
if not frappe.local.test_objects.get(options):
|
||||
if not options in frappe.local.test_objects:
|
||||
if options in frappe.local.test_objects:
|
||||
frappe.throw("Circular Reference for {0}".format(options))
|
||||
print "No test records or circular reference for {0}".format(options)
|
||||
frappe.local.test_objects[options] = []
|
||||
make_test_records(options, verbose, force)
|
||||
make_test_records_for_doctype(options, verbose, force)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue