refactor(test): no need to assert repost_required flag

Reposting happens implicitly upon 'Update After Submit'
This commit is contained in:
ruthra kumar
2024-07-15 14:21:47 +05:30
parent 722ef92324
commit 8f135e9859
2 changed files with 0 additions and 6 deletions

View File

@@ -456,10 +456,6 @@ class TestJournalEntry(unittest.TestCase):
jv.accounts[1].cost_center = "_Test Cost Center for BS Account - _TC"
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
jv.load_from_db()
self.expected_gle[0]["cost_center"] = "_Test Cost Center for BS Account - _TC"

View File

@@ -2017,8 +2017,6 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin):
pi.items[0].expense_account = "Service - _TC"
pi.save()
pi.load_from_db()
self.assertTrue(pi.repost_required)
pi.repost_accounting_entries()
expected_gle = [
["Creditors - _TC", 0.0, 1000, nowdate()],