From 88e5170bd0f1aacf651c38e1dfea383da87b4b85 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 30 Sep 2011 17:21:41 +0530 Subject: [PATCH] Test case added for MTN --- erpnext/sandbox/test_stock_entry.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/erpnext/sandbox/test_stock_entry.py b/erpnext/sandbox/test_stock_entry.py index 44e1405ac69..0f986a89257 100644 --- a/erpnext/sandbox/test_stock_entry.py +++ b/erpnext/sandbox/test_stock_entry.py @@ -185,18 +185,6 @@ class TestStockEntry(unittest.TestCase): print "Stock Entry Cancelled" return ste - #=========================================================================== - def check_serial_no(self, action, cnt): - print "Checking serial nos........" - if action == 'submit': - status, wh, docstatus = 'In Store', 'wh1', 0 - else: - status, wh, docstatus = 'Not in Use', '', 2 - - ser = sql("select count(name) from `tabSerial No` where item_code = 'it' and warehouse = '%s' and status = '%s' and docstatus = %s" % (wh, status, docstatus)) - - self.assertTrue(ser[0][0] == cnt) - #=========================================================================== def tearDown(self): webnotes.conn.rollback() @@ -267,7 +255,6 @@ class TestStockEntry(unittest.TestCase): 'voucher_no': stock_entry.mtn[0].name, 'actual_qty': -5, 'bin_aqat': 5, - #'valuation_rate': 100, 'is_cancelled': 'Yes' }, { 'doctype': 'Stock Ledger Entry', @@ -286,8 +273,6 @@ class TestStockEntry(unittest.TestCase): 'voucher_type': 'Stock Entry', 'voucher_no': stock_entry.mtn[0].name, 'actual_qty': 5, - #'bin_aqat': 10, - #'valuation_rate': 100, 'is_cancelled': 'Yes' }, { 'doctype': 'Stock Ledger Entry', @@ -296,8 +281,6 @@ class TestStockEntry(unittest.TestCase): 'voucher_type': 'Stock Entry', 'voucher_no': stock_entry.mtn[0].name, 'actual_qty': -5, - #'bin_aqat': 0, - #'valuation_rate': 100, 'is_cancelled': 'Yes' }] }