refactor(test): test cases modified to handle new approach

This commit is contained in:
ruthra kumar
2024-03-20 15:16:33 +05:30
parent a158b825d7
commit 81309576b0
2 changed files with 5 additions and 0 deletions

View File

@@ -181,8 +181,10 @@ def get_random_date(start_date, start_range, end_range):
def create_transaction_deletion_record(company):
transaction_deletion_record = frappe.new_doc("Transaction Deletion Record")
transaction_deletion_record.company = company
transaction_deletion_record.process_in_single_transaction = True
transaction_deletion_record.save(ignore_permissions=True)
transaction_deletion_record.submit()
transaction_deletion_record.start_deletion_tasks()
def clear_masters():