From d0d75a2ab55afcd9d4f9263a72ca92bf6e83b01f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 16 Jun 2026 14:08:15 +0530 Subject: [PATCH] fix: minor fix Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> (cherry picked from commit 0e7d45b1af0c2b01a93667baedbba35554b60995) --- .../accounts/report/financial_ratios/test_financial_ratios.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/financial_ratios/test_financial_ratios.py b/erpnext/accounts/report/financial_ratios/test_financial_ratios.py index 0a34fd8409e..a093f0ceb67 100644 --- a/erpnext/accounts/report/financial_ratios/test_financial_ratios.py +++ b/erpnext/accounts/report/financial_ratios/test_financial_ratios.py @@ -46,7 +46,8 @@ class TestFinancialRatios(ERPNextTestSuite): columns, data = execute(self.get_report_filters()) year_key = columns[1]["fieldname"] - ratio_row = next(row for row in data if row.get("ratio") == "Fixed Asset Turnover Ratio") + ratio_row = next((row for row in data if row.get("ratio") == "Fixed Asset Turnover Ratio"), None) + self.assertIsNotNone(ratio_row, "Fixed Asset Turnover Ratio row not found in report output") # Net Sales / Net Fixed Assets = 20,000 / 10,000 = 2.0 # (the old behaviour divided by total assets, giving 20,000 / 30,000 = 0.667)