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,7 @@
# License: GNU General Public License v3. See license.txt
import frappe
from frappe.tests import IntegrationTestCase
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.utils import add_days, getdate, nowdate
from erpnext.projects.doctype.project_template.test_project_template import make_project_template
@@ -14,6 +14,15 @@ test_records = frappe.get_test_records("Project")
test_ignore = ["Sales Order"]
class UnitTestProject(UnitTestCase):
"""
Unit tests for Project.
Use this class for testing individual functions and methods.
"""
pass
class TestProject(IntegrationTestCase):
def test_project_with_template_having_no_parent_and_depend_tasks(self):
project_name = "Test Project with Template - No Parent and Dependend Tasks"