Skip to content

Commit

Permalink
fix: remove hardwired fiscal year in before_tests method
Browse files Browse the repository at this point in the history
  • Loading branch information
akashkrishna619 committed Apr 3, 2023
1 parent 421f136 commit fe2c337
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions healthcare/healthcare/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ def before_tests():
# complete setup if missing
from frappe.desk.page.setup_wizard.setup_wizard import setup_complete

current_year = frappe.utils.now_datetime().year

if not frappe.get_list("Company"):
setup_complete(
{
Expand All @@ -916,8 +918,8 @@ def before_tests():
"company_abbr": "WP",
"industry": "Healthcare",
"country": "United States",
"fy_start_date": "2022-04-01",
"fy_end_date": "2023-03-31",
"fy_start_date": f"{current_year}-01-01",
"fy_end_date": f"{current_year}-12-31",
"language": "english",
"company_tagline": "Testing",
"email": "test@erpnext.com",
Expand Down

0 comments on commit fe2c337

Please sign in to comment.