refactor: Use IntegrationTestCase in multiple files

Signed-off-by: David <dgx.arnold@gmail.com>
This commit is contained in:
David
2024-10-08 00:42:00 +02:00
parent cd112795d3
commit e75eebc7a0
85 changed files with 208 additions and 168 deletions

View File

@@ -1,5 +1,7 @@
import unittest
from frappe.tests import IntegrationTestCase
from erpnext.tests.utils import ReportFilters, ReportName, execute_script_report
DEFAULT_FILTERS = {
@@ -34,7 +36,7 @@ REPORT_FILTER_TEST_CASES: list[tuple[ReportName, ReportFilters]] = [
OPTIONAL_FILTERS = {}
class TestReports(unittest.TestCase):
class TestReports(IntegrationTestCase):
def test_execute_all_accounts_reports(self):
"""Test that all script report in stock modules are executable with supported filters"""
for report, filter in REPORT_FILTER_TEST_CASES: