mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
fix: pass company in test case using make_quality_inspections
(cherry picked from commit 397de1274f)
This commit is contained in:
@@ -142,7 +142,9 @@ class TestQualityInspection(IntegrationTestCase):
|
|||||||
inspection_type = "Outgoing"
|
inspection_type = "Outgoing"
|
||||||
for item in dn.items:
|
for item in dn.items:
|
||||||
item.sample_size = item.qty
|
item.sample_size = item.qty
|
||||||
quality_inspections = make_quality_inspections(dn.doctype, dn.name, dn.items, inspection_type)
|
quality_inspections = make_quality_inspections(
|
||||||
|
dn.company, dn.doctype, dn.name, dn.items, inspection_type
|
||||||
|
)
|
||||||
self.assertEqual(len(dn.items), len(quality_inspections))
|
self.assertEqual(len(dn.items), len(quality_inspections))
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
|
|||||||
Reference in New Issue
Block a user