mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 01:20:41 +00:00
test: add positive item_code filter case in Quality Inspection Summary
This commit is contained in:
@@ -63,6 +63,14 @@ class TestQualityInspectionSummary(ERPNextTestSuite):
|
|||||||
)
|
)
|
||||||
self.assertEqual(self._rows_for_qi(data), [])
|
self.assertEqual(self._rows_for_qi(data), [])
|
||||||
|
|
||||||
|
def test_item_code_filter_includes_matching(self):
|
||||||
|
data = self.run_report(
|
||||||
|
from_date=add_days(nowdate(), -1),
|
||||||
|
to_date=add_days(nowdate(), 1),
|
||||||
|
item_code=["_Test Item"],
|
||||||
|
)
|
||||||
|
self.assertEqual(len(self._rows_for_qi(data)), 1)
|
||||||
|
|
||||||
def test_item_code_filter_excludes_other_item(self):
|
def test_item_code_filter_excludes_other_item(self):
|
||||||
other_item = frappe.generate_hash(length=10)
|
other_item = frappe.generate_hash(length=10)
|
||||||
data = self.run_report(
|
data = self.run_report(
|
||||||
|
|||||||
Reference in New Issue
Block a user