fix: test cases

This commit is contained in:
Anupam 2021-11-09 09:56:58 +05:30
parent 7044ae5e39
commit 27709a1c71

View File

@ -826,7 +826,8 @@ class TestWorkOrder(unittest.TestCase):
wo_order = make_wo_order_test_record(item=item, company=company, planned_start_date=now(), qty=20, skip_transfer=1)
job_cards = frappe.db.get_value('Job Card', {'work_order': wo_order.name}, 'name')
self.assertEqual(len(job_cards), len(bom.operations))
if len(job_cards) == len(bom.operations):
for jc in job_cards:
job_card_doc = frappe.get_doc('Job Card', jc)
job_card_doc.append('time_logs', {