chore: Drop empty UnitTestCases (#32867)

Next to zero adoption after introduction, just noise in codebase.

I don't see any point in arguing about purity of test cases when
existence and quality of test cases is usually the bigger problem.

Dropped using semgrep
This commit is contained in:
Ankush Menat 2025-06-10 10:58:53 +05:30 committed by GitHub
parent e4bc7f361b
commit 8088bd3891
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
172 changed files with 172 additions and 1719 deletions

View file

@ -2,21 +2,12 @@
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.utils import make_test_records
TEST_DOCTYPE = "Assignment Test"
class UnitTestAssignmentRule(UnitTestCase):
"""
Unit tests for AssignmentRule.
Use this class for testing individual functions and methods.
"""
pass
class TestAutoAssign(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -9,7 +9,7 @@ from frappe.automation.doctype.auto_repeat.auto_repeat import (
week_map,
)
from frappe.custom.doctype.custom_field.custom_field import create_custom_field
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import add_days, add_months, getdate, today
if TYPE_CHECKING:
@ -32,15 +32,6 @@ def add_custom_fields() -> "CustomField":
)
class UnitTestAutoRepeat(UnitTestCase):
"""
Unit tests for AutoRepeat.
Use this class for testing individual functions and methods.
"""
pass
class TestAutoRepeat(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2019, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestMilestone(UnitTestCase):
"""
Unit tests for Milestone.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestMilestone(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# License: MIT. See LICENSE
import frappe
import frappe.cache_manager
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestMilestoneTracker(UnitTestCase):
"""
Unit tests for MilestoneTracker.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestMilestoneTracker(IntegrationTestCase):

View file

@ -4,19 +4,10 @@
import frappe
from frappe.automation.doctype.reminder.reminder import create_new_reminder, send_reminders
from frappe.desk.doctype.notification_log.notification_log import get_notification_logs
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import add_to_date, now_datetime
class UnitTestReminder(UnitTestCase):
"""
Unit tests for Reminder.
Use this class for testing individual functions and methods.
"""
pass
class TestReminder(IntegrationTestCase):
def test_reminder(self):
description = "TEST_REMINDER"

View file

@ -4,16 +4,7 @@ from functools import partial
import frappe
from frappe.contacts.doctype.address.address import address_query, get_address_display
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestAddress(UnitTestCase):
"""
Unit tests for Address.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestAddress(IntegrationTestCase):

View file

@ -2,19 +2,10 @@
# License: MIT. See LICENSE
import frappe
from frappe.contacts.doctype.address_template.address_template import get_default_address_template
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils.jinja import validate_template
class UnitTestAddressTemplate(UnitTestCase):
"""
Unit tests for AddressTemplate.
Use this class for testing individual functions and methods.
"""
pass
class TestAddressTemplate(IntegrationTestCase):
def setUp(self) -> None:
frappe.db.delete("Address Template", {"country": "India"})

View file

@ -3,20 +3,11 @@
import frappe
from frappe.contacts.doctype.contact.contact import get_full_name
from frappe.email import get_contact_list
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
EXTRA_TEST_RECORD_DEPENDENCIES = ["Contact", "Salutation"]
class UnitTestContact(UnitTestCase):
"""
Unit tests for Contact.
Use this class for testing individual functions and methods.
"""
pass
class TestContact(IntegrationTestCase):
def test_check_default_email(self):
emails = [

View file

@ -1,15 +1,6 @@
# Copyright (c) 2017, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestGender(UnitTestCase):
"""
Unit tests for Gender.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestGender(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2017, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestSalutation(UnitTestCase):
"""
Unit tests for Salutation.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestSalutation(IntegrationTestCase):

View file

@ -14,19 +14,10 @@ from frappe.core.doctype.data_import.data_import import export_csv
from frappe.core.doctype.user.user import generate_keys
# imports - standard imports
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import cstr, get_site_url
class UnitTestAccessLog(UnitTestCase):
"""
Unit tests for AccessLog.
Use this class for testing individual functions and methods.
"""
pass
class TestAccessLog(IntegrationTestCase):
def setUp(self):
# generate keys for current user to send requests for the following tests

View file

@ -4,16 +4,7 @@ import time
import frappe
from frappe.auth import CookieManager, LoginManager
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestActivityLog(UnitTestCase):
"""
Unit tests for ActivityLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestActivityLog(IntegrationTestCase):

View file

@ -2,7 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
# On IntegrationTestCase, the doctype test records and all
# link-field test record dependencies are recursively loaded
@ -11,15 +11,6 @@ EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
class UnitTestAPIRequestLog(UnitTestCase):
"""
Unit tests for APIRequestLog.
Use this class for testing individual functions and methods.
"""
pass
class IntegrationTestAPIRequestLog(IntegrationTestCase):
"""
Integration tests for APIRequestLog.

View file

@ -2,19 +2,10 @@
# See license.txt
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import today
class UnitTestAuditTrail(UnitTestCase):
"""
Unit tests for AuditTrail.
Use this class for testing individual functions and methods.
"""
pass
class TestAuditTrail(IntegrationTestCase):
def setUp(self):
self.child_doctype = create_custom_child_doctype()

View file

@ -4,20 +4,11 @@ import json
import frappe
from frappe.templates.includes.comments.comments import add_comment
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.test_model_utils import set_user
from frappe.website.doctype.blog_post.test_blog_post import make_test_blog
class UnitTestComment(UnitTestCase):
"""
Unit tests for Comment.
Use this class for testing individual functions and methods.
"""
pass
class TestComment(IntegrationTestCase):
def test_comment_creation(self):
test_doc = frappe.get_doc(doctype="ToDo", description="test")

View file

@ -6,22 +6,13 @@ import frappe
from frappe.core.doctype.communication.communication import Communication, get_emails, parse_email
from frappe.core.doctype.communication.email import add_attachments, make
from frappe.email.doctype.email_queue.email_queue import EmailQueue
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
if TYPE_CHECKING:
from frappe.contacts.doctype.contact.contact import Contact
from frappe.email.doctype.email_account.email_account import EmailAccount
class UnitTestCommunication(UnitTestCase):
"""
Unit tests for Communication.
Use this class for testing individual functions and methods.
"""
pass
class TestCommunication(IntegrationTestCase):
def test_email(self):
valid_email_list = [

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestCustomDocperm(UnitTestCase):
"""
Unit tests for CustomDocperm.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestCustomDocPerm(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestCustomRole(UnitTestCase):
"""
Unit tests for CustomRole.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestCustomRole(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# License: MIT. See LICENSE
import frappe
from frappe.core.doctype.data_export.exporter import DataExporter
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDataExport(UnitTestCase):
"""
Unit tests for DataExport.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDataExporter(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDataImport(UnitTestCase):
"""
Unit tests for DataImport.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDataImport(IntegrationTestCase):

View file

@ -3,20 +3,11 @@
import frappe
from frappe.core.doctype.data_import.exporter import Exporter
from frappe.core.doctype.data_import.test_importer import create_doctype_if_not_exists
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
doctype_name = "DocType for Export"
class UnitTestDataImport(UnitTestCase):
"""
Unit tests for DataImport.
Use this class for testing individual functions and methods.
"""
pass
class TestExporter(IntegrationTestCase):
def setUp(self):
create_doctype_if_not_exists(doctype_name)

View file

@ -2,22 +2,13 @@
# License: MIT. See LICENSE
import frappe
from frappe.core.doctype.data_import.importer import Importer
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.test_query_builder import db_type_is, run_only_if
from frappe.utils import format_duration, getdate
doctype_name = "DocType for Import"
class UnitTestDataImport(UnitTestCase):
"""
Unit tests for DataImport.
Use this class for testing individual functions and methods.
"""
pass
class TestImporter(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDataImportLog(UnitTestCase):
"""
Unit tests for DataImportLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDataImportLog(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDeletedDocument(UnitTestCase):
"""
Unit tests for DeletedDocument.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDeletedDocument(IntegrationTestCase):

View file

@ -4,20 +4,11 @@
import frappe
import frappe.share
from frappe.automation.doctype.auto_repeat.test_auto_repeat import create_submittable_doctype
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
EXTRA_TEST_RECORD_DEPENDENCIES = ["User"]
class UnitTestDocshare(UnitTestCase):
"""
Unit tests for Docshare.
Use this class for testing individual functions and methods.
"""
pass
class TestDocShare(IntegrationTestCase):
def setUp(self):
self.user = "test@example.com"

View file

@ -2,7 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
# On IntegrationTestCase, the doctype test records and all
@ -12,14 +12,6 @@ EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
class UnitTest{classname}(UnitTestCase):
"""
Unit tests for {classname}.
Use this class for testing individual functions and methods.
"""
pass
class IntegrationTest{classname}(IntegrationTestCase):
"""

View file

@ -25,19 +25,10 @@ from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
from frappe.desk.form.load import getdoc
from frappe.model.delete_doc import delete_controllers
from frappe.model.sync import remove_orphan_doctypes
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import get_table_name
class UnitTestDoctype(UnitTestCase):
"""
Unit tests for Doctype.
Use this class for testing individual functions and methods.
"""
pass
class TestDocType(IntegrationTestCase):
def tearDown(self):
frappe.db.rollback()

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDocumentNamingRule(UnitTestCase):
"""
Unit tests for DocumentNamingRule.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDocumentNamingRule(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDocumentNamingRuleCondition(UnitTestCase):
"""
Unit tests for DocumentNamingRuleCondition.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDocumentNamingRuleCondition(IntegrationTestCase):

View file

@ -7,19 +7,10 @@ from frappe.core.doctype.document_naming_settings.document_naming_settings impor
DocumentNamingSettings,
)
from frappe.model.naming import NamingSeries, get_default_naming_series
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import cint
class UnitTestDocumentNamingSettings(UnitTestCase):
"""
Unit tests for DocumentNamingSettings.
Use this class for testing individual functions and methods.
"""
pass
class TestNamingSeries(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDocumentShareKey(UnitTestCase):
"""
Unit tests for DocumentShareKey.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDocumentShareKey(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2017, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDomain(UnitTestCase):
"""
Unit tests for Domain.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDomain(IntegrationTestCase):

View file

@ -5,19 +5,10 @@ from unittest.mock import patch
from ldap3.core.exceptions import LDAPException, LDAPInappropriateAuthenticationResult
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils.error import _is_ldap_exception, guess_exception_source
class UnitTestErrorLog(UnitTestCase):
"""
Unit tests for ErrorLog.
Use this class for testing individual functions and methods.
"""
pass
class TestErrorLog(IntegrationTestCase):
def test_error_log(self):
"""let's do an error log on error log?"""

View file

@ -20,7 +20,7 @@ from frappe.core.doctype.file.exceptions import FileTypeNotAllowed
from frappe.core.doctype.file.utils import get_corrupted_image_msg, get_extension
from frappe.desk.form.utils import add_comment
from frappe.exceptions import ValidationError
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import get_files_path, set_request
if TYPE_CHECKING:
@ -61,15 +61,6 @@ def make_test_image_file(private=False):
_test_file.delete()
class UnitTestFile(UnitTestCase):
"""
Unit tests for File.
Use this class for testing individual functions and methods.
"""
pass
class TestSimpleFile(IntegrationTestCase):
def setUp(self):
self.attached_to_doctype, self.attached_to_docname = make_test_doc()

View file

@ -6,16 +6,7 @@ from frappe.core.doctype.installed_applications.installed_applications import (
InvalidAppOrder,
update_installed_apps_order,
)
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestInstalledApplications(UnitTestCase):
"""
Unit tests for InstalledApplications.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestInstalledApplications(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestLanguage(UnitTestCase):
"""
Unit tests for Language.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestLanguage(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestLogSettingUser(UnitTestCase):
"""
Unit tests for LogSettingUser.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestLogSettingUser(IntegrationTestCase):

View file

@ -5,19 +5,10 @@ from datetime import datetime
import frappe
from frappe.core.doctype.log_settings.log_settings import _supports_log_clearing, run_log_clean_up
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import add_to_date, now_datetime
class UnitTestLogSettings(UnitTestCase):
"""
Unit tests for LogSettings.
Use this class for testing individual functions and methods.
"""
pass
class TestLogSettings(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestModuleDef(UnitTestCase):
"""
Unit tests for ModuleDef.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestModuleDef(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestModuleProfile(UnitTestCase):
"""
Unit tests for ModuleProfile.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestModuleProfile(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestNavbarItem(UnitTestCase):
"""
Unit tests for NavbarItem.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestNavbarItem(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestNavbarSettings(UnitTestCase):
"""
Unit tests for NavbarSettings.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestNavbarSettings(IntegrationTestCase):

View file

@ -5,16 +5,7 @@ import json
import os
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPackage(UnitTestCase):
"""
Unit tests for Package.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPackage(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPackageImport(UnitTestCase):
"""
Unit tests for PackageImport.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPackageImport(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPackageRelease(UnitTestCase):
"""
Unit tests for PackageRelease.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPackageRelease(IntegrationTestCase):

View file

@ -5,16 +5,7 @@ import unittest
from unittest.mock import patch
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPage(UnitTestCase):
"""
Unit tests for Page.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPage(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPatchLog(UnitTestCase):
"""
Unit tests for PatchLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPatchLog(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPermissionInspector(UnitTestCase):
"""
Unit tests for PermissionInspector.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPermissionInspector(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPermissionLog(UnitTestCase):
"""
Unit tests for PermissionLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPermissionLog(IntegrationTestCase):

View file

@ -7,19 +7,10 @@ from contextlib import contextmanager
import frappe
from frappe.desk.query_report import generate_report_result, get_report_doc
from frappe.query_builder.utils import db_type_is
from frappe.tests import IntegrationTestCase, UnitTestCase, timeout
from frappe.tests import IntegrationTestCase, timeout
from frappe.tests.test_query_builder import run_only_if
class UnitTestPreparedReport(UnitTestCase):
"""
Unit tests for PreparedReport.
Use this class for testing individual functions and methods.
"""
pass
class TestPreparedReport(IntegrationTestCase):
@classmethod
def tearDownClass(cls):

View file

@ -8,20 +8,11 @@ import frappe.recorder
from frappe.core.doctype.recorder.recorder import _optimize_query, serialize_request
from frappe.query_builder.utils import db_type_is
from frappe.recorder import get as get_recorder_data
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.test_query_builder import run_only_if
from frappe.utils import set_request
class UnitTestRecorder(UnitTestCase):
"""
Unit tests for Recorder.
Use this class for testing individual functions and methods.
"""
pass
class TestRecorder(IntegrationTestCase):
def setUp(self):
self.start_recoder()

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestRecorderQuery(UnitTestCase):
"""
Unit tests for RecorderQuery.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestRecorderQuery(IntegrationTestCase):

View file

@ -11,20 +11,11 @@ from frappe.custom.doctype.customize_form.customize_form import reset_customizat
from frappe.desk.query_report import add_total_row, run, save_report
from frappe.desk.reportview import delete_report
from frappe.desk.reportview import save_report as _save_report
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
EXTRA_TEST_RECORD_DEPENDENCIES = ["User"]
class UnitTestReport(UnitTestCase):
"""
Unit tests for Report.
Use this class for testing individual functions and methods.
"""
pass
class TestReport(IntegrationTestCase):
@classmethod
def setUpClass(cls) -> None:

View file

@ -3,16 +3,7 @@
import frappe
from frappe.core.doctype.role.role import get_info_based_on_role
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestRole(UnitTestCase):
"""
Unit tests for Role.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestUser(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestRolePermissionForPageAndReport(UnitTestCase):
"""
Unit tests for RolePermissionForPageAndReport.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestRolePermissionforPageandReport(IntegrationTestCase):

View file

@ -1,20 +1,11 @@
# Copyright (c) 2017, Frappe Technologies and Contributors
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
EXTRA_TEST_RECORD_DEPENDENCIES = ["Role"]
class UnitTestRoleProfile(UnitTestCase):
"""
Unit tests for RoleProfile.
Use this class for testing individual functions and methods.
"""
pass
class TestRoleProfile(IntegrationTestCase):
def test_make_new_role_profiles(self):
frappe.delete_doc_if_exists("Role Profile", "Test 1", force=1)

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestRoleReplication(UnitTestCase):
"""
Unit tests for RoleReplication.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestRoleReplication(IntegrationTestCase):

View file

@ -10,7 +10,7 @@ from rq.job import Job
import frappe
from frappe.core.doctype.rq_job.rq_job import RQJob, remove_failed_jobs, stop_job
from frappe.installer import update_site_config
from frappe.tests import IntegrationTestCase, UnitTestCase, timeout
from frappe.tests import IntegrationTestCase, timeout
from frappe.utils import cstr, execute_in_shell
from frappe.utils.background_jobs import get_job_status, is_job_enqueued
@ -23,15 +23,6 @@ def wait_for_completion(job: Job):
time.sleep(0.2)
class UnitTestRqJob(UnitTestCase):
"""
Unit tests for RqJob.
Use this class for testing individual functions and methods.
"""
pass
class TestRQJob(IntegrationTestCase):
BG_JOB = "frappe.core.doctype.rq_job.test_rq_job.test_func"

View file

@ -3,16 +3,7 @@
import frappe
from frappe.core.doctype.rq_worker.rq_worker import RQWorker
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestRqWorker(UnitTestCase):
"""
Unit tests for RqWorker.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestRQWorker(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2019, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestScheduledJobLog(UnitTestCase):
"""
Unit tests for ScheduledJobLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestScheduledJobLog(IntegrationTestCase):

View file

@ -4,20 +4,11 @@ from datetime import timedelta
import frappe
from frappe.core.doctype.scheduled_job_type.scheduled_job_type import sync_jobs
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import get_datetime
from frappe.utils.data import add_to_date, now_datetime
class UnitTestScheduledJobType(UnitTestCase):
"""
Unit tests for ScheduledJobType.
Use this class for testing individual functions and methods.
"""
pass
class TestScheduledJobType(IntegrationTestCase):
def setUp(self):
frappe.db.rollback()

View file

@ -2,7 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
# On IntegrationTestCase, the doctype test records and all
# link-field test record dependencies are recursively loaded
@ -11,15 +11,6 @@ EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
class UnitTestSchedulerEvent(UnitTestCase):
"""
Unit tests for SchedulerEvent.
Use this class for testing individual functions and methods.
"""
pass
class IntegrationTestSchedulerEvent(IntegrationTestCase):
"""
Integration tests for SchedulerEvent.

View file

@ -6,7 +6,7 @@ import frappe
from frappe.core.doctype.scheduled_job_type.scheduled_job_type import ScheduledJobType, sync_jobs
from frappe.core.doctype.server_script.server_script import ServerScript
from frappe.frappeclient import FrappeClient, FrappeException
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import get_site_url
scripts = [
@ -108,15 +108,6 @@ doc.save()
]
class UnitTestServerScript(UnitTestCase):
"""
Unit tests for ServerScript.
Use this class for testing individual functions and methods.
"""
pass
class TestServerScript(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -5,16 +5,7 @@ from frappe.core.doctype.session_default_settings.session_default_settings impor
clear_session_defaults,
set_session_default_values,
)
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestSessionDefaultSettings(UnitTestCase):
"""
Unit tests for SessionDefaultSettings.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestSessionDefaultSettings(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2017, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestSmsSettings(UnitTestCase):
"""
Unit tests for SmsSettings.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestSMSSettings(IntegrationTestCase):

View file

@ -5,22 +5,13 @@ import time
import typing
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase, timeout
from frappe.tests import IntegrationTestCase, timeout
from frappe.utils.background_jobs import get_queue
if typing.TYPE_CHECKING:
from rq.job import Job
class UnitTestSubmissionQueue(UnitTestCase):
"""
Unit tests for SubmissionQueue.
Use this class for testing individual functions and methods.
"""
pass
class TestSubmissionQueue(IntegrationTestCase):
@classmethod
def setUpClass(cls):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2017, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestSystemSettings(UnitTestCase):
"""
Unit tests for SystemSettings.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestSystemSettings(IntegrationTestCase):

View file

@ -3,16 +3,7 @@
import hashlib
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestTransactionLog(UnitTestCase):
"""
Unit tests for TransactionLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestTransactionLog(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# License: MIT. See LICENSE
import frappe
from frappe import _
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestTranslation(UnitTestCase):
"""
Unit tests for Translation.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestTranslation(IntegrationTestCase):

View file

@ -22,7 +22,7 @@ from frappe.core.doctype.user.user import (
from frappe.desk.notifications import extract_mentions
from frappe.frappeclient import FrappeClient
from frappe.model.delete_doc import delete_doc
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.classes.context_managers import change_settings
from frappe.tests.test_api import FrappeAPITestCase
from frappe.utils import get_url
@ -30,15 +30,6 @@ from frappe.utils import get_url
user_module = frappe.core.doctype.user.user
class UnitTestUser(UnitTestCase):
"""
Unit tests for User.
Use this class for testing individual functions and methods.
"""
pass
class TestUser(IntegrationTestCase):
def tearDown(self):
# disable password strength test

View file

@ -1,16 +1,7 @@
# Copyright (c) 2021, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestUserGroup(UnitTestCase):
"""
Unit tests for UserGroup.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestUserGroup(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2021, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestUserGroupMember(UnitTestCase):
"""
Unit tests for UserGroupMember.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestUserGroupMember(IntegrationTestCase):

View file

@ -7,19 +7,10 @@ from frappe.core.doctype.user_permission.user_permission import (
remove_applicable,
)
from frappe.permissions import add_permission, has_user_permission
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.website.doctype.blog_post.test_blog_post import make_test_blog
class UnitTestUserPermission(UnitTestCase):
"""
Unit tests for UserPermission.
Use this class for testing individual functions and methods.
"""
pass
class TestUserPermission(IntegrationTestCase):
def setUp(self):
test_users = (

View file

@ -2,16 +2,7 @@
# License: MIT. See LICENSE
import frappe
from frappe.installer import update_site_config
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestUserType(UnitTestCase):
"""
Unit tests for UserType.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestUserType(IntegrationTestCase):

View file

@ -4,19 +4,10 @@ import copy
import frappe
from frappe.core.doctype.version.version import get_diff
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.utils import make_test_objects
class UnitTestVersion(UnitTestCase):
"""
Unit tests for Version.
Use this class for testing individual functions and methods.
"""
pass
class TestVersion(IntegrationTestCase):
def test_get_diff(self):
frappe.set_user("Administrator")

View file

@ -1,16 +1,7 @@
# Copyright (c) 2018, Frappe Technologies and Contributors
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestViewLog(UnitTestCase):
"""
Unit tests for ViewLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestViewLog(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestClientScript(UnitTestCase):
"""
Unit tests for ClientScript.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestClientScript(IntegrationTestCase):

View file

@ -7,16 +7,7 @@ from frappe.custom.doctype.custom_field.custom_field import (
create_custom_fields,
rename_fieldname,
)
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestCustomField(UnitTestCase):
"""
Unit tests for CustomField.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestCustomField(IntegrationTestCase):

View file

@ -6,21 +6,12 @@ import json
import frappe
from frappe.core.doctype.doctype.doctype import InvalidFieldNameError
from frappe.core.doctype.doctype.test_doctype import new_doctype
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.utils import make_test_records_for_doctype
EXTRA_TEST_RECORD_DEPENDENCIES = ["Custom Field", "Property Setter"]
class UnitTestCustomizeForm(UnitTestCase):
"""
Unit tests for CustomizeForm.
Use this class for testing individual functions and methods.
"""
pass
class TestCustomizeForm(IntegrationTestCase):
def insert_custom_field(self):
frappe.delete_doc_if_exists("Custom Field", "Event-custom_test_field")

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDoctypeLayout(UnitTestCase):
"""
Unit tests for DoctypeLayout.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDocTypeLayout(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestPropertySetter(UnitTestCase):
"""
Unit tests for PropertySetter.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestPropertySetter(IntegrationTestCase):

View file

@ -6,16 +6,7 @@ import time
import frappe
from frappe.core.doctype.doctype.test_doctype import new_doctype
from frappe.desk.doctype.bulk_update.bulk_update import submit_cancel_or_update_docs
from frappe.tests import IntegrationTestCase, UnitTestCase, timeout
class UnitTestBulkUpdate(UnitTestCase):
"""
Unit tests for BulkUpdate.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase, timeout
class TestBulkUpdate(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestChangelogFeed(UnitTestCase):
"""
Unit tests for ChangelogFeed.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestChangelogFeed(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestConsoleLog(UnitTestCase):
"""
Unit tests for ConsoleLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestConsoleLog(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestCustomHtmlBlock(UnitTestCase):
"""
Unit tests for CustomHtmlBlock.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestCustomHTMLBlock(IntegrationTestCase):

View file

@ -2,19 +2,10 @@
# License: MIT. See LICENSE
import frappe
from frappe.core.doctype.user.test_user import test_user
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils.modules import get_modules_from_all_apps_for_user
class UnitTestDashboard(UnitTestCase):
"""
Unit tests for Dashboard.
Use this class for testing individual functions and methods.
"""
pass
class TestDashboard(IntegrationTestCase):
def test_permission_query(self):
for user in ["Administrator", "test@example.com"]:

View file

@ -9,20 +9,11 @@ from dateutil.relativedelta import relativedelta
import frappe
from frappe.core.doctype.doctype.test_doctype import new_doctype
from frappe.desk.doctype.dashboard_chart.dashboard_chart import get
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.utils import formatdate, get_last_day, getdate
from frappe.utils.dateutils import get_period, get_period_ending
class UnitTestDashboardChart(UnitTestCase):
"""
Unit tests for DashboardChart.
Use this class for testing individual functions and methods.
"""
pass
class TestDashboardChart(IntegrationTestCase):
def setUp(self):
doc = new_doctype(

View file

@ -1,15 +1,6 @@
# Copyright (c) 2019, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestDashboardChartSource(UnitTestCase):
"""
Unit tests for DashboardChartSource.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestDashboardChartSource(IntegrationTestCase):

View file

@ -8,19 +8,10 @@ from datetime import date
import frappe
from frappe.core.utils import find
from frappe.desk.doctype.event.event import get_events
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests import IntegrationTestCase
from frappe.tests.utils import make_test_objects
class UnitTestEvent(UnitTestCase):
"""
Unit tests for Event.
Use this class for testing individual functions and methods.
"""
pass
class TestEvent(IntegrationTestCase):
def setUp(self):
frappe.db.delete("Event")

View file

@ -2,16 +2,7 @@
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestFormTour(UnitTestCase):
"""
Unit tests for FormTour.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestFormTour(IntegrationTestCase):

View file

@ -1,15 +1,6 @@
# Copyright (c) 2015, Frappe Technologies and Contributors
# License: MIT. See LICENSE
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestKanbanBoard(UnitTestCase):
"""
Unit tests for KanbanBoard.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestKanbanBoard(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2019, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestListViewSettings(UnitTestCase):
"""
Unit tests for ListViewSettings.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestListViewSettings(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestModuleOnboarding(UnitTestCase):
"""
Unit tests for ModuleOnboarding.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestModuleOnboarding(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestNote(UnitTestCase):
"""
Unit tests for Note.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestNote(IntegrationTestCase):

View file

@ -3,16 +3,7 @@
import frappe
from frappe.core.doctype.user.user import get_system_users
from frappe.desk.form.assign_to import add as assign_task
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestNotificationLog(UnitTestCase):
"""
Unit tests for NotificationLog.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestNotificationLog(IntegrationTestCase):

View file

@ -2,16 +2,7 @@
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestNotificationSettings(UnitTestCase):
"""
Unit tests for NotificationSettings.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestNotificationSettings(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestNumberCard(UnitTestCase):
"""
Unit tests for NumberCard.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestNumberCard(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestOnboardingPermission(UnitTestCase):
"""
Unit tests for OnboardingPermission.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestOnboardingPermission(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestOnboardingStep(UnitTestCase):
"""
Unit tests for OnboardingStep.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestOnboardingStep(IntegrationTestCase):

View file

@ -1,16 +1,7 @@
# Copyright (c) 2020, Frappe Technologies and Contributors
# License: MIT. See LICENSE
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
class UnitTestSystemConsole(UnitTestCase):
"""
Unit tests for SystemConsole.
Use this class for testing individual functions and methods.
"""
pass
from frappe.tests import IntegrationTestCase
class TestSystemConsole(IntegrationTestCase):

Some files were not shown because too many files have changed in this diff Show more