Skip to content

Commit

Permalink
test: test case to check pick list name has mapped or not
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Mar 31, 2022
1 parent 2f63ae2 commit 2f51011
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/doctype/pick_list/test_pick_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ def test_multiple_dn_creation(self):
for dn_item in frappe.get_doc("Delivery Note", dn.name).get("items"):
self.assertEqual(dn_item.item_code, "_Test Item")
self.assertEqual(dn_item.against_sales_order, sales_order_1.name)
self.assertEqual(dn_item.pick_list_item, pick_list.locations[dn_item.idx - 1].name)

for dn in frappe.get_all(
"Delivery Note",
filters={"pick_list": pick_list.name, "customer": "_Test Customer 1"},
Expand Down

0 comments on commit 2f51011

Please sign in to comment.