mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-13 17:20:36 +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 TestImportSupplierInvoice(IntegrationTestCase):
|
||||
class TestImportSupplierInvoice(ERPNextTestSuite):
|
||||
pass
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
|
||||
class TestLowerDeductionCertificate(IntegrationTestCase):
|
||||
class TestLowerDeductionCertificate(ERPNextTestSuite):
|
||||
pass
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
|
||||
class TestSouthAfricaVATSettings(IntegrationTestCase):
|
||||
class TestSouthAfricaVATSettings(ERPNextTestSuite):
|
||||
pass
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
|
||||
class TestUAEVATSettings(IntegrationTestCase):
|
||||
class TestUAEVATSettings(ERPNextTestSuite):
|
||||
pass
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.regional.report.irs_1099.irs_1099 import execute as execute_1099_report
|
||||
from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
|
||||
class TestUnitedStates(IntegrationTestCase):
|
||||
class TestUnitedStates(ERPNextTestSuite):
|
||||
def test_irs_1099_custom_field(self):
|
||||
if not frappe.db.exists("Supplier", "_US 1099 Test Supplier"):
|
||||
doc = frappe.new_doc("Supplier")
|
||||
|
||||
Reference in New Issue
Block a user