From a46e6b69dcfe88d079fc781e7b8154232d22e313 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 7 Oct 2024 16:44:04 +0200 Subject: [PATCH] refactor: Use IntegrationTestCase in test_account.py --- erpnext/accounts/doctype/account/test_account.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/account/test_account.py b/erpnext/accounts/doctype/account/test_account.py index 7c5b0e99208..d0efa53b103 100644 --- a/erpnext/accounts/doctype/account/test_account.py +++ b/erpnext/accounts/doctype/account/test_account.py @@ -1,10 +1,9 @@ # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt - - import unittest import frappe +from frappe.tests import IntegrationTestCase from frappe.tests.utils import make_test_records from frappe.utils import nowdate @@ -18,7 +17,7 @@ from erpnext.stock import get_company_default_inventory_account, get_warehouse_a test_dependencies = ["Company"] -class TestAccount(unittest.TestCase): +class TestAccount(IntegrationTestCase): def test_rename_account(self): if not frappe.db.exists("Account", "1210 - Debtors - _TC"): acc = frappe.new_doc("Account")