mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
test: move report tests to subttest (#29945)
Basically failfast=False but for sub-tests
This commit is contained in:
@@ -39,6 +39,7 @@ class TestReports(unittest.TestCase):
|
|||||||
def test_execute_all_accounts_reports(self):
|
def test_execute_all_accounts_reports(self):
|
||||||
"""Test that all script report in stock modules are executable with supported filters"""
|
"""Test that all script report in stock modules are executable with supported filters"""
|
||||||
for report, filter in REPORT_FILTER_TEST_CASES:
|
for report, filter in REPORT_FILTER_TEST_CASES:
|
||||||
|
with self.subTest(report=report):
|
||||||
execute_script_report(
|
execute_script_report(
|
||||||
report_name=report,
|
report_name=report,
|
||||||
module="Accounts",
|
module="Accounts",
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class TestManufacturingReports(unittest.TestCase):
|
|||||||
def test_execute_all_manufacturing_reports(self):
|
def test_execute_all_manufacturing_reports(self):
|
||||||
"""Test that all script report in manufacturing modules are executable with supported filters"""
|
"""Test that all script report in manufacturing modules are executable with supported filters"""
|
||||||
for report, filter in REPORT_FILTER_TEST_CASES:
|
for report, filter in REPORT_FILTER_TEST_CASES:
|
||||||
|
with self.subTest(report=report):
|
||||||
execute_script_report(
|
execute_script_report(
|
||||||
report_name=report,
|
report_name=report,
|
||||||
module="Manufacturing",
|
module="Manufacturing",
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ class TestReports(unittest.TestCase):
|
|||||||
def test_execute_all_stock_reports(self):
|
def test_execute_all_stock_reports(self):
|
||||||
"""Test that all script report in stock modules are executable with supported filters"""
|
"""Test that all script report in stock modules are executable with supported filters"""
|
||||||
for report, filter in REPORT_FILTER_TEST_CASES:
|
for report, filter in REPORT_FILTER_TEST_CASES:
|
||||||
|
with self.subTest(report=report):
|
||||||
execute_script_report(
|
execute_script_report(
|
||||||
report_name=report,
|
report_name=report,
|
||||||
module="Stock",
|
module="Stock",
|
||||||
|
|||||||
Reference in New Issue
Block a user