From 3461e50e8970e18952c9d81c635dbb1893ed3e26 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 7 Oct 2024 19:57:11 +0200 Subject: [PATCH] refactor: Use IntegrationTestCase in test_accounting_period.py Signed-off-by: David --- .../doctype/accounting_period/test_accounting_period.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/accounting_period/test_accounting_period.py b/erpnext/accounts/doctype/accounting_period/test_accounting_period.py index 16cae9683f9..3f2941b3dd3 100644 --- a/erpnext/accounts/doctype/accounting_period/test_accounting_period.py +++ b/erpnext/accounts/doctype/accounting_period/test_accounting_period.py @@ -1,9 +1,9 @@ # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt - import unittest import frappe +from frappe.tests import IntegrationTestCase from frappe.utils import add_months, nowdate from erpnext.accounts.doctype.accounting_period.accounting_period import ( @@ -15,7 +15,7 @@ from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sal test_dependencies = ["Item"] -class TestAccountingPeriod(unittest.TestCase): +class TestAccountingPeriod(IntegrationTestCase): def test_overlap(self): ap1 = create_accounting_period( start_date="2018-04-01", end_date="2018-06-30", company="Wind Power LLC"