From 465b3f696822b3854cea9abfdcd30ce44b0a6b29 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 29 Nov 2022 11:53:52 +0530 Subject: [PATCH] test: use _dict in tests form_dict is usually _dict, otherwise some unrelated tests will fail. --- frappe/tests/test_query_report.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frappe/tests/test_query_report.py b/frappe/tests/test_query_report.py index 434eefb5d5..f93ab81c8b 100644 --- a/frappe/tests/test_query_report.py +++ b/frappe/tests/test_query_report.py @@ -89,14 +89,16 @@ class TestQueryReport(FrappeTestCase): for delimiter in (",", ";", "\t", "|"): for quoting in (QUOTE_ALL, QUOTE_MINIMAL, QUOTE_NONE, QUOTE_NONNUMERIC): - frappe.local.form_dict = { - "report_name": REPORT_NAME, - "file_format_type": "CSV", - "csv_quoting": quoting, - "csv_delimiter": delimiter, - "include_indentation": 0, - "visible_idx": [0, 1, 2], - } + frappe.local.form_dict = frappe._dict( + { + "report_name": REPORT_NAME, + "file_format_type": "CSV", + "csv_quoting": quoting, + "csv_delimiter": delimiter, + "include_indentation": 0, + "visible_idx": [0, 1, 2], + } + ) export_query() self.assertTrue(frappe.response["filename"].endswith(".csv"))