[test-runner] fix

This commit is contained in:
Rushabh Mehta 2015-05-18 12:24:03 +05:30
parent af08e9629c
commit da9530815a

View file

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