mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 09:23:09 +00:00
Merge pull request #43548 from blaggacao/test-refactoring/batch-1728345166
Refactor: Use IntegrationTestCase in multiple files
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# Copyright (c) 2018, Frappe and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
class TestQualityAction(unittest.TestCase):
|
||||
|
||||
class TestQualityAction(IntegrationTestCase):
|
||||
# quality action has no code
|
||||
pass
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
|
||||
class TestQualityFeedback(unittest.TestCase):
|
||||
class TestQualityFeedback(IntegrationTestCase):
|
||||
def test_quality_feedback(self):
|
||||
template = frappe.get_doc(
|
||||
dict(
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
class TestQualityFeedbackTemplate(unittest.TestCase):
|
||||
|
||||
class TestQualityFeedbackTemplate(IntegrationTestCase):
|
||||
pass
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Copyright (c) 2018, Frappe and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
|
||||
class TestQualityGoal(unittest.TestCase):
|
||||
class TestQualityGoal(IntegrationTestCase):
|
||||
def test_quality_goal(self):
|
||||
# no code, just a basic sanity check
|
||||
goal = get_quality_goal()
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# Copyright (c) 2018, Frappe and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
class TestQualityMeeting(unittest.TestCase):
|
||||
|
||||
class TestQualityMeeting(IntegrationTestCase):
|
||||
# nothing to test
|
||||
pass
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
class TestQualityMeetingAgenda(unittest.TestCase):
|
||||
|
||||
class TestQualityMeetingAgenda(IntegrationTestCase):
|
||||
pass
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Copyright (c) 2018, Frappe and Contributors
|
||||
# See license.txt
|
||||
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
from ..quality_goal.test_quality_goal import get_quality_goal
|
||||
from .quality_review import review
|
||||
|
||||
|
||||
class TestQualityReview(unittest.TestCase):
|
||||
class TestQualityReview(IntegrationTestCase):
|
||||
def test_review_creation(self):
|
||||
quality_goal = get_quality_goal()
|
||||
review()
|
||||
|
||||
Reference in New Issue
Block a user