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))