fix(test): check for batch_no in returned dict
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user