test: set country to India before running regional tests

This commit is contained in:
Rucha Mahabal
2022-05-23 14:15:36 +05:30
committed by Nabin Hait
parent 00adda7c8d
commit 2e98e9e0b9
2 changed files with 50 additions and 7 deletions

View File

@@ -369,6 +369,7 @@ def calculate_annual_eligible_hra_exemption(doc):
basic_component, hra_component = frappe.db.get_value(
"Company", doc.company, ["basic_component", "hra_component"]
)
if not (basic_component and hra_component):
frappe.throw(
_("Please set Basic and HRA component in Company {0}").format(