test: add test case for between condition

This commit is contained in:
khushi8112 2025-11-06 16:30:57 +05:30
parent d7106649ee
commit fc52a5ce1a

View file

@ -31,6 +31,7 @@ from frappe.utils import (
get_bench_path,
get_file_timestamp,
get_gravatar,
get_link_to_report,
get_site_info,
get_sites,
get_url,
@ -342,6 +343,13 @@ class TestFilters(IntegrationTestCase):
self.assertTrue(compare(None, "is", "Not Set"))
self.assertTrue(compare(None, "is", "not set"))
def test_get_link_to_report_with_between_filter(self):
filters = {
"creation": [["between", ["2024-01-01", "2024-12-31"]]],
}
link = get_link_to_report(name="ToDo", filters=filters)
self.assertIn('creation=["between",["2024-01-01","2024-12-31"]]', link)
class TestMoney(IntegrationTestCase):
def test_money_in_words(self):