mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
test: Product Discounts
This commit is contained in:
@@ -265,10 +265,9 @@ class TestProductDataEngine(unittest.TestCase):
|
|||||||
)
|
)
|
||||||
items = result.get("items")
|
items = result.get("items")
|
||||||
|
|
||||||
# check if only product with 10% and below discount are fetched in the right order
|
# check if only product with 10% and below discount are fetched
|
||||||
self.assertEqual(len(items), 2)
|
self.assertEqual(len(items), 1)
|
||||||
self.assertEqual(items[0].get("item_code"), "Test 13I Laptop")
|
self.assertEqual(items[0].get("item_code"), "Test 12I Laptop")
|
||||||
self.assertEqual(items[1].get("item_code"), "Test 12I Laptop")
|
|
||||||
|
|
||||||
def test_product_list_with_api(self):
|
def test_product_list_with_api(self):
|
||||||
"Test products listing using API."
|
"Test products listing using API."
|
||||||
|
|||||||
Reference in New Issue
Block a user