mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
[minor] don't rollback when running all tests, fixed test cases
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user