diff --git a/erpnext/stock/doctype/batch/test_batch.py b/erpnext/stock/doctype/batch/test_batch.py index 998c8e35c79..44a17176dff 100644 --- a/erpnext/stock/doctype/batch/test_batch.py +++ b/erpnext/stock/doctype/batch/test_batch.py @@ -99,7 +99,8 @@ class TestBatch(FrappeTestCase): # shipped from FEFO batch self.assertEqual( - delivery_note.items[0].batch_no, get_batch_no(item_code, receipt.items[0].warehouse, batch_qty) + delivery_note.items[0].batch_no, + get_batch_no(item_code, receipt.items[0].warehouse, batch_qty).get("batch_no", None), ) def test_delivery_note_fail(self): @@ -145,7 +146,8 @@ class TestBatch(FrappeTestCase): # assert same batch is selected self.assertEqual( - stock_entry.items[0].batch_no, get_batch_no(item_code, receipt.items[0].warehouse, batch_qty) + stock_entry.items[0].batch_no, + get_batch_no(item_code, receipt.items[0].warehouse, batch_qty).get("batch_no", None), ) def test_batch_split(self):