fix(test_server_script): this is applicable to mariadb+sqlite

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-03-19 15:16:14 +05:30
parent 9fa330c075
commit aed2c65cd2
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

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