[minor] don't rollback when running all tests, fixed test cases

This commit is contained in:
Anand Doshi
2013-10-15 19:52:29 +05:30
parent 8ae6520129
commit a295bf5421
15 changed files with 160 additions and 47 deletions

View File

@@ -426,7 +426,7 @@ def import_data(dt, submit=False, overwrite=False):
for doctype in dt:
print "Importing", doctype.replace("_", " "), "..."
webnotes.form_dict = webnotes._dict()
webnotes.local.form_dict = webnotes._dict()
if submit:
webnotes.form_dict["params"] = json.dumps({"_submit": 1})
webnotes.uploaded_file = os.path.join(os.path.dirname(__file__), "demo_docs", doctype+".csv")