diff --git a/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py b/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py index 1f38172ea8f..1dc4a9e4b98 100644 --- a/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py +++ b/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py @@ -43,9 +43,9 @@ def test_record_generator(): for year in range(start, end): test_records.append({ "doctype": "Fiscal Year", - "year": f"_Test Fiscal Year {year}", - "year_start_date": f"{year}-01-01", - "year_end_date": f"{year}-12-31" + "year": "_Test Fiscal Year {}".format(year), + "year_start_date": "{}-01-01".format(year), + "year_end_date": "{}-12-31".format(year) }) return test_records