mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
fix: Assert False for test that is anticipating an empty table and remove second arg to assertTrue
This commit is contained in:
@@ -113,7 +113,7 @@ class TestProductionPlan(FrappeTestCase):
|
|||||||
item_code='Test Production Item 1',
|
item_code='Test Production Item 1',
|
||||||
ignore_existing_ordered_qty=1
|
ignore_existing_ordered_qty=1
|
||||||
)
|
)
|
||||||
self.assertTrue(len(pln.mr_items), 1)
|
self.assertTrue(len(pln.mr_items))
|
||||||
self.assertTrue(flt(pln.mr_items[0].quantity), 1.0)
|
self.assertTrue(flt(pln.mr_items[0].quantity), 1.0)
|
||||||
|
|
||||||
sr1.cancel()
|
sr1.cancel()
|
||||||
@@ -154,7 +154,7 @@ class TestProductionPlan(FrappeTestCase):
|
|||||||
use_multi_level_bom=0,
|
use_multi_level_bom=0,
|
||||||
ignore_existing_ordered_qty=0
|
ignore_existing_ordered_qty=0
|
||||||
)
|
)
|
||||||
self.assertTrue(len(pln.mr_items))
|
self.assertFalse(len(pln.mr_items))
|
||||||
|
|
||||||
sr1.cancel()
|
sr1.cancel()
|
||||||
sr2.cancel()
|
sr2.cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user