refactor: replace IntegrationTestCase with ERPNextTestCase repo-wide

- import ERPNextTestSuite
 - use it on test class
This commit is contained in:
ruthra kumar
2026-01-20 10:12:06 +05:30
parent 0fdc961a4b
commit f1dfac417d
319 changed files with 870 additions and 867 deletions

View File

@@ -3,8 +3,8 @@
# import frappe
import unittest
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestNonConformance(IntegrationTestCase):
class TestNonConformance(ERPNextTestSuite):
pass

View File

@@ -2,9 +2,9 @@
# See license.txt
import unittest
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestQualityAction(IntegrationTestCase):
class TestQualityAction(ERPNextTestSuite):
# quality action has no code
pass

View File

@@ -3,10 +3,11 @@
import unittest
import frappe
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestQualityFeedback(IntegrationTestCase):
class TestQualityFeedback(ERPNextTestSuite):
def test_quality_feedback(self):
template = frappe.get_doc(
doctype="Quality Feedback Template",

View File

@@ -2,8 +2,8 @@
# See license.txt
import unittest
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestQualityFeedbackTemplate(IntegrationTestCase):
class TestQualityFeedbackTemplate(ERPNextTestSuite):
pass

View File

@@ -3,10 +3,11 @@
import unittest
import frappe
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestQualityGoal(IntegrationTestCase):
class TestQualityGoal(ERPNextTestSuite):
def test_quality_goal(self):
# no code, just a basic sanity check
goal = get_quality_goal()

View File

@@ -2,9 +2,9 @@
# See license.txt
import unittest
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestQualityMeeting(IntegrationTestCase):
class TestQualityMeeting(ERPNextTestSuite):
# nothing to test
pass

View File

@@ -3,8 +3,8 @@
# import frappe
import unittest
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
class TestQualityMeetingAgenda(IntegrationTestCase):
class TestQualityMeetingAgenda(ERPNextTestSuite):
pass

View File

@@ -2,12 +2,13 @@
# See license.txt
import frappe
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
from .quality_procedure import add_node
class TestQualityProcedure(IntegrationTestCase):
class TestQualityProcedure(ERPNextTestSuite):
def test_add_node(self):
procedure = create_procedure(
{

View File

@@ -3,13 +3,14 @@
import unittest
import frappe
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ERPNextTestSuite
from ..quality_goal.test_quality_goal import get_quality_goal
from .quality_review import review
class TestQualityReview(IntegrationTestCase):
class TestQualityReview(ERPNextTestSuite):
def test_review_creation(self):
quality_goal = get_quality_goal()
review()