fix: Failing test case on develop (#16974)

This commit is contained in:
Deepesh Garg 2019-03-21 12:53:12 +05:30 committed by GitHub
parent 3c95387926
commit 3a05b3501c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,7 @@ class TestWorkOrder(unittest.TestCase):
bom_doc = frappe.get_doc('BOM', bom)
work_order = make_wo_order_test_record(item=bom_item, qty=1, bom_no=bom)
job_cards = frappe.get_all('Job Card', filters = {'work_order': work_order})
job_cards = frappe.get_all('Job Card', filters = {'work_order': work_order.name})
self.assertEqual(len(job_cards), len(bom_doc.operations))
def test_work_order_with_non_transfer_item(self):