Skip to content

Commit

Permalink
refactor(test): unset accounts frozen date
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Oct 2, 2023
1 parent 444adfb commit 63a74ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ def setUp(self):
create_items(["_Test Internal Transfer Item"], uoms=[{"uom": "Box", "conversion_factor": 10}])
create_internal_parties()
setup_accounts()
self.remove_accounts_frozen_date()

def tearDown(self):
frappe.db.rollback()

def remove_accounts_frozen_date(self):
frappe.db.set_single_value("Accounts Settings", "acc_frozen_upto", None)

def make(self):
w = frappe.copy_doc(test_records[0])
w.is_pos = 0
Expand Down

0 comments on commit 63a74ad

Please sign in to comment.