From a797c31b570b18cd81da572c7bf2d9792656a545 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 26 Jun 2026 14:09:00 +0530 Subject: [PATCH] test: reuse BootStrapTestData master data in Cash Flow report tests Co-Authored-By: Claude Opus 4.8 (1M context) --- erpnext/accounts/report/cash_flow/test_cash_flow.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/erpnext/accounts/report/cash_flow/test_cash_flow.py b/erpnext/accounts/report/cash_flow/test_cash_flow.py index 16e4526e4d0..82555b3cfe5 100644 --- a/erpnext/accounts/report/cash_flow/test_cash_flow.py +++ b/erpnext/accounts/report/cash_flow/test_cash_flow.py @@ -59,16 +59,9 @@ class TestCashFlow(ERPNextTestSuite): def test_cash_purchase_of_asset_is_investing_outflow(self): """Buying a fixed asset for cash is an investing outflow that reduces net change in cash.""" - from erpnext.accounts.doctype.account.test_account import create_account from erpnext.accounts.doctype.journal_entry.test_journal_entry import make_journal_entry - create_account( - account_name="_Test Cash Flow Asset", - company=self.company, - parent_account="Fixed Assets - _TC", - account_type="Fixed Asset", - ) - asset_account = "_Test Cash Flow Asset - _TC" + asset_account = "Office Equipment - _TC" before = self.net_change_in_cash() # debit the fixed asset, credit cash -> cash goes out