test: fix test case
This commit is contained in:
@@ -146,12 +146,12 @@ class TestJournalEntry(unittest.TestCase):
|
||||
"credit_in_account_currency": 0 if diff > 0 else abs(diff),
|
||||
},
|
||||
)
|
||||
jv.insert()
|
||||
|
||||
if account_bal == stock_bal:
|
||||
self.assertRaises(StockAccountInvalidTransaction, jv.submit)
|
||||
self.assertRaises(StockAccountInvalidTransaction, jv.insert)
|
||||
frappe.db.rollback()
|
||||
else:
|
||||
jv.insert()
|
||||
jv.submit()
|
||||
jv.cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user