From aed2c65cd20452610b8ce841b24bcb2ab5ea29e0 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Wed, 19 Mar 2025 15:16:14 +0530 Subject: [PATCH] fix(test_server_script): this is applicable to mariadb+sqlite Signed-off-by: Akhil Narang --- frappe/core/doctype/server_script/test_server_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/server_script/test_server_script.py b/frappe/core/doctype/server_script/test_server_script.py index 86d16e9dbd..92008fb89f 100644 --- a/frappe/core/doctype/server_script/test_server_script.py +++ b/frappe/core/doctype/server_script/test_server_script.py @@ -166,7 +166,7 @@ class TestServerScript(IntegrationTestCase): self.assertEqual(frappe.get_doc("Server Script", "test_return_value").execute_method(), "hello") def test_permission_query(self): - if frappe.conf.db_type == "mariadb": + if frappe.conf.db_type != "postgres": self.assertTrue("where (1 = 1)" in frappe.db.get_list("ToDo", run=False)) else: self.assertTrue("where (1 = '1')" in frappe.db.get_list("ToDo", run=False))