mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 07:37:04 +00:00
refactor: replace IntegrationTestCase with ERPNextTestCase repo-wide
- import ERPNextTestSuite - use it on test class
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user