mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
refactor(test): no need to assert repost_required flag
Reposting happens implicitly upon 'Update After Submit'
This commit is contained in:
@@ -456,10 +456,6 @@ class TestJournalEntry(unittest.TestCase):
|
|||||||
jv.accounts[1].cost_center = "_Test Cost Center for BS Account - _TC"
|
jv.accounts[1].cost_center = "_Test Cost Center for BS Account - _TC"
|
||||||
jv.save()
|
jv.save()
|
||||||
|
|
||||||
# Check if repost flag gets set on update after submit
|
|
||||||
self.assertTrue(jv.repost_required)
|
|
||||||
jv.repost_accounting_entries()
|
|
||||||
|
|
||||||
# Check GL entries after reposting
|
# Check GL entries after reposting
|
||||||
jv.load_from_db()
|
jv.load_from_db()
|
||||||
self.expected_gle[0]["cost_center"] = "_Test Cost Center for BS Account - _TC"
|
self.expected_gle[0]["cost_center"] = "_Test Cost Center for BS Account - _TC"
|
||||||
|
|||||||
@@ -2017,8 +2017,6 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin):
|
|||||||
pi.items[0].expense_account = "Service - _TC"
|
pi.items[0].expense_account = "Service - _TC"
|
||||||
pi.save()
|
pi.save()
|
||||||
pi.load_from_db()
|
pi.load_from_db()
|
||||||
self.assertTrue(pi.repost_required)
|
|
||||||
pi.repost_accounting_entries()
|
|
||||||
|
|
||||||
expected_gle = [
|
expected_gle = [
|
||||||
["Creditors - _TC", 0.0, 1000, nowdate()],
|
["Creditors - _TC", 0.0, 1000, nowdate()],
|
||||||
|
|||||||
Reference in New Issue
Block a user