diff --git a/frappe/tests/test_query_report.py b/frappe/tests/test_query_report.py index 6c00bbc41e..0a22c0f1f2 100644 --- a/frappe/tests/test_query_report.py +++ b/frappe/tests/test_query_report.py @@ -10,6 +10,11 @@ from frappe.utils.xlsxutils import make_xlsx class TestQueryReport(FrappeTestCase): + @classmethod + def setUpClass(cls) -> None: + cls.enable_safe_exec() + return super().setUpClass() + def tearDown(self): frappe.db.rollback()