fix: revert get_all change

get_all doesn't use get_query
This commit is contained in:
Faris Ansari 2025-05-26 12:45:49 +05:30
parent ae3f216255
commit e6c939c606

View file

@ -374,7 +374,7 @@ class TestDB(IntegrationTestCase):
random_field,
)
self.assertEqual(
next(iter(frappe.get_all("ToDo", fields=[{"COUNT": random_field}], limit=1)[0])),
next(iter(frappe.get_all("ToDo", fields=[f"count(`{random_field}`)"], limit=1)[0])),
"count" if frappe.conf.db_type == "postgres" else f"count(`{random_field}`)",
)