calls local to build frappe.form_dict in order to pass failing test

This commit is contained in:
tunde 2017-06-26 12:42:11 +01:00
parent 8859eb23a3
commit 5824ae98d9

View File

@ -44,7 +44,8 @@ class TestRequestforQuotation(unittest.TestCase):
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')),