refactor: Use IntegrationTestCase in multiple files

Signed-off-by: David <dgx.arnold@gmail.com>
This commit is contained in:
David
2024-10-08 02:13:00 +02:00
parent cd112795d3
commit 58c49dc9d2
42 changed files with 107 additions and 81 deletions

View File

@@ -2,6 +2,7 @@ import unittest
import frappe
from frappe.desk.form.assign_to import add as add_assignment
from frappe.tests import IntegrationTestCase
from frappe.utils import add_months, getdate
from erpnext.support.doctype.issue.test_issue import create_customer, make_issue
@@ -13,7 +14,7 @@ from erpnext.support.report.issue_analytics.issue_analytics import execute
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
class TestIssueAnalytics(unittest.TestCase):
class TestIssueAnalytics(IntegrationTestCase):
@classmethod
def setUpClass(self):
frappe.db.sql("delete from `tabIssue` where company='_Test Company'")