From 4bd26b845e0fcc727cff2b2228b349c6445b0edb Mon Sep 17 00:00:00 2001 From: David Date: Thu, 5 Sep 2024 14:29:06 +0200 Subject: [PATCH] fix: test ensures min spent respected --- .../accounts/doctype/loyalty_program/test_loyalty_program.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/accounts/doctype/loyalty_program/test_loyalty_program.py b/erpnext/accounts/doctype/loyalty_program/test_loyalty_program.py index 64adce9ec15..af8b38cca91 100644 --- a/erpnext/accounts/doctype/loyalty_program/test_loyalty_program.py +++ b/erpnext/accounts/doctype/loyalty_program/test_loyalty_program.py @@ -39,6 +39,9 @@ class TestLoyaltyProgram(unittest.TestCase): ) self.assertEqual(si_original.get("loyalty_program"), customer.loyalty_program) + self.assertEqual( + lpe.get("loyalty_program_tier"), None + ) # 10000 does not surpass the first tier (11000) self.assertEqual(lpe.get("loyalty_program_tier"), customer.loyalty_program_tier) self.assertEqual(lpe.loyalty_points, earned_points)