mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: test ensures min spent respected
This commit is contained in:
@@ -39,6 +39,9 @@ class TestLoyaltyProgram(unittest.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.assertEqual(si_original.get("loyalty_program"), customer.loyalty_program)
|
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.get("loyalty_program_tier"), customer.loyalty_program_tier)
|
||||||
self.assertEqual(lpe.loyalty_points, earned_points)
|
self.assertEqual(lpe.loyalty_points, earned_points)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user