fixed test cases

This commit is contained in:
Nabin Hait 2014-10-10 21:22:46 +05:30
parent 4f0e5db216
commit 70ec88b733
2 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class TestPurchaseReceipt(unittest.TestCase):
pr.insert()
self.assertEquals(len(pr.get("pr_raw_material_details")), 2)
self.assertEquals(pr.get("purchase_receipt_details")[0].rm_supp_cost, 70000.0)
self.assertEquals(pr.get("purchase_receipt_details")[0].rm_supp_cost, 20750.0)
def test_serial_no_supplier(self):

View File

@ -939,3 +939,5 @@ def make_stock_entry(item, source, target, qty, incoming_rate=None):
s.insert()
s.submit()
return s
test_records = frappe.get_test_records('Stock Entry')