fix: skip test_eps_heatmap_query for now

Need to implement `UnixTimestamp` and `Interval` for sqlite in pypika

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-03-26 17:42:09 +05:30
parent aed2c65cd2
commit 8aed84c0d0
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -1,5 +1,7 @@
# Copyright (c) 2019, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from unittest.case import skipIf
import frappe
from frappe.cache_manager import clear_doctype_map
from frappe.desk.form.assign_to import add as assign_to
@ -240,6 +242,10 @@ class TestEnergyPointLog(IntegrationTestCase):
self.assertEqual(test2_user_after_points, test2_user_before_points + rule.points)
@skipIf(
frappe.conf.db_type == "sqlite",
"Not for SQLite for now",
)
def test_eps_heatmap_query(self):
# Just asserts that query works, not correctness.
self.assertIsInstance(get_energy_points_heatmap_data(user="test@example.com", date=None), dict)