refactor: add bare unit test cases

mainly for LLMs to catch up with the convention
This commit is contained in:
David
2024-10-06 11:56:22 +02:00
parent bda415a83d
commit 2adb417408
85 changed files with 850 additions and 85 deletions

View File

@@ -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):

View File

@@ -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()

View File

@@ -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()