test: cover more reports in test
This commit is contained in:
parent
c6a17d1966
commit
f5f3552abb
@ -1,6 +1,8 @@
|
||||
import unittest
|
||||
from typing import List, Tuple
|
||||
|
||||
import frappe
|
||||
|
||||
from erpnext.tests.utils import ReportFilters, ReportName, execute_script_report
|
||||
|
||||
DEFAULT_FILTERS = {
|
||||
@ -10,8 +12,12 @@ DEFAULT_FILTERS = {
|
||||
}
|
||||
|
||||
|
||||
batch = frappe.db.get_value("Batch", fieldname=["name"], as_dict=True, order_by="creation desc")
|
||||
|
||||
REPORT_FILTER_TEST_CASES: List[Tuple[ReportName, ReportFilters]] = [
|
||||
("Stock Ledger", {"_optional": True}),
|
||||
("Stock Ledger", {"batch_no": batch}),
|
||||
("Stock Ledger", {"item_code": "_Test Item", "warehouse": "_Test Warehouse - _TC"}),
|
||||
("Stock Balance", {"_optional": True}),
|
||||
("Stock Projected Qty", {"_optional": True}),
|
||||
("Batch-Wise Balance History", {}),
|
||||
@ -40,6 +46,13 @@ REPORT_FILTER_TEST_CASES: List[Tuple[ReportName, ReportFilters]] = [
|
||||
("Item Variant Details", {"item": "_Test Variant Item",}),
|
||||
("Total Stock Summary", {"group_by": "warehouse",}),
|
||||
("Batch Item Expiry Status", {}),
|
||||
("Incorrect Stock Value Report", {"company": "_Test Company with perpetual inventory"}),
|
||||
("Incorrect Serial No Valuation", {}),
|
||||
("Incorrect Balance Qty After Transaction", {}),
|
||||
("Supplier-Wise Sales Analytics", {}),
|
||||
("Item Prices", {"items": "Enabled Items only"}),
|
||||
("Delayed Item Report", {"based_on": "Sales Invoice"}),
|
||||
("Delayed Item Report", {"based_on": "Delivery Note"}),
|
||||
("Stock Ageing", {"range1": 30, "range2": 60, "range3": 90, "_optional": True}),
|
||||
("Stock Ledger Invariant Check",
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user