commit | 5824ae98d900378e200da8b9701a3d324939ba07 | [log] [tgz] |
---|---|---|
author | tunde <tundebabzy@gmail.com> | Mon Jun 26 12:42:11 2017 +0100 |
committer | tunde <tundebabzy@gmail.com> | Mon Jun 26 12:42:11 2017 +0100 |
tree | d415ffde24b6d78d0c5600fcd8b53caf9ad24909 | |
parent | 8859eb23a38aee967ba4d579450c441b650d0978 [diff] |
calls `local` to build `frappe.form_dict` in order to pass failing test
diff --git a/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py b/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py index ef4e8b2..2e8b946 100644 --- a/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py
@@ -44,7 +44,8 @@ sq = make_supplier_quotation(rfq.name, supplier_wt_appos[0].get("supplier")) sq.submit() - frappe.local.form_dict = dict(name=rfq.name) + frappe.form_dict = frappe.local("form_dict") + frappe.form_dict.name = rfq.name self.assertEqual( check_supplier_has_docname_access(supplier_wt_appos[0].get('supplier')),