mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 13:42:10 +01:00
refactor(test): make pick list deterministic
This commit is contained in:
@@ -510,6 +510,7 @@ class TestPickList(ERPNextTestSuite):
|
||||
self.assertEqual(pick_list.locations[1].qty, 5)
|
||||
self.assertEqual(pick_list.locations[1].sales_order_item, sales_order.items[0].name)
|
||||
|
||||
@ERPNextTestSuite.change_settings("Selling Settings", {"allow_multiple_items": 1})
|
||||
def test_pick_list_for_items_with_multiple_UOM(self):
|
||||
item_code = make_item(
|
||||
uoms=[
|
||||
@@ -1374,6 +1375,7 @@ class TestPickList(ERPNextTestSuite):
|
||||
|
||||
frappe.db.set_single_value("Stock Settings", "over_picking_allowance", 0)
|
||||
|
||||
@ERPNextTestSuite.change_settings("Selling Settings", {"allow_multiple_items": 1})
|
||||
def test_ignore_pricing_rule_in_pick_list(self):
|
||||
frappe.flags.print_stmt = False
|
||||
warehouse = "_Test Warehouse - _TC"
|
||||
@@ -1475,6 +1477,7 @@ class TestPickList(ERPNextTestSuite):
|
||||
for loc in pl.locations:
|
||||
self.assertEqual(loc.batch_no, batch2)
|
||||
|
||||
@ERPNextTestSuite.change_settings("Selling Settings", {"allow_multiple_items": 1})
|
||||
def test_multiple_pick_lists_delivery_note(self):
|
||||
from erpnext.stock.doctype.pick_list.pick_list import create_dn_for_pick_lists
|
||||
|
||||
@@ -1561,6 +1564,7 @@ class TestPickList(ERPNextTestSuite):
|
||||
stock_entry_2.cancel()
|
||||
stock_entry_3.cancel()
|
||||
|
||||
@ERPNextTestSuite.change_settings("Selling Settings", {"allow_multiple_items": 1})
|
||||
def test_packed_item_multiple_times_in_so(self):
|
||||
frappe.db.delete("Item Price")
|
||||
warehouse_1 = "_Test Warehouse - _TC"
|
||||
|
||||
Reference in New Issue
Block a user