mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
refactor: add bare unit test cases
mainly for LLMs to catch up with the convention
This commit is contained in:
@@ -2,7 +2,16 @@
|
||||
# See license.txt
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.tests import IntegrationTestCase, UnitTestCase
|
||||
|
||||
|
||||
class UnitTestSubcontractingBom(UnitTestCase):
|
||||
"""
|
||||
Unit tests for SubcontractingBom.
|
||||
Use this class for testing individual functions and methods.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class TestSubcontractingBOM(IntegrationTestCase):
|
||||
|
||||
@@ -5,7 +5,7 @@ import copy
|
||||
from collections import defaultdict
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.tests import IntegrationTestCase, UnitTestCase
|
||||
from frappe.utils import flt
|
||||
|
||||
from erpnext.buying.doctype.purchase_order.purchase_order import get_mapped_subcontracting_order
|
||||
@@ -32,6 +32,15 @@ from erpnext.subcontracting.doctype.subcontracting_order.subcontracting_order im
|
||||
)
|
||||
|
||||
|
||||
class UnitTestSubcontractingOrder(UnitTestCase):
|
||||
"""
|
||||
Unit tests for SubcontractingOrder.
|
||||
Use this class for testing individual functions and methods.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class TestSubcontractingOrder(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
make_subcontracted_items()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import copy
|
||||
|
||||
import frappe
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.tests import IntegrationTestCase, UnitTestCase
|
||||
from frappe.utils import add_days, cint, flt, nowtime, today
|
||||
|
||||
import erpnext
|
||||
@@ -40,6 +40,15 @@ from erpnext.subcontracting.doctype.subcontracting_order.subcontracting_order im
|
||||
)
|
||||
|
||||
|
||||
class UnitTestSubcontractingReceipt(UnitTestCase):
|
||||
"""
|
||||
Unit tests for SubcontractingReceipt.
|
||||
Use this class for testing individual functions and methods.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class TestSubcontractingReceipt(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
make_subcontracted_items()
|
||||
|
||||
Reference in New Issue
Block a user