mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
refactor: Use IntegrationTestCase in test_account.py
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe.tests import IntegrationTestCase
|
||||||
from frappe.tests.utils import make_test_records
|
from frappe.tests.utils import make_test_records
|
||||||
from frappe.utils import nowdate
|
from frappe.utils import nowdate
|
||||||
|
|
||||||
@@ -18,7 +17,7 @@ from erpnext.stock import get_company_default_inventory_account, get_warehouse_a
|
|||||||
test_dependencies = ["Company"]
|
test_dependencies = ["Company"]
|
||||||
|
|
||||||
|
|
||||||
class TestAccount(unittest.TestCase):
|
class TestAccount(IntegrationTestCase):
|
||||||
def test_rename_account(self):
|
def test_rename_account(self):
|
||||||
if not frappe.db.exists("Account", "1210 - Debtors - _TC"):
|
if not frappe.db.exists("Account", "1210 - Debtors - _TC"):
|
||||||
acc = frappe.new_doc("Account")
|
acc = frappe.new_doc("Account")
|
||||||
|
|||||||
Reference in New Issue
Block a user