[test] [fix] print values for failing test

This commit is contained in:
Rushabh Mehta 2015-10-15 12:45:42 +05:30
parent 14a908bdec
commit ba5b0e8458

View File

@ -366,6 +366,8 @@ class TestDeliveryNote(unittest.TestCase):
gl_entries = get_gl_entries("Delivery Note", dn.name)
self.assertTrue(gl_entries)
print frappe.as_json(gl_entries)
stock_value_difference = abs(frappe.db.sql("""select sum(stock_value_difference)
from `tabStock Ledger Entry` where voucher_type='Delivery Note' and voucher_no=%s
and warehouse='_Test Warehouse - _TC'""", dn.name)[0][0])