mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
refactor(test): make sales order analysis deterministic
This commit is contained in:
@@ -159,6 +159,12 @@ class TestSalesOrderAnalysis(ERPNextTestSuite):
|
|||||||
self.assertEqual(data[0][key], val)
|
self.assertEqual(data[0][key], val)
|
||||||
|
|
||||||
def test_05_all_so_status(self):
|
def test_05_all_so_status(self):
|
||||||
|
transaction_date = "2021-06-01"
|
||||||
|
item1, so1 = self.create_sales_order(transaction_date)
|
||||||
|
item2, so2 = self.create_sales_order(transaction_date)
|
||||||
|
|
||||||
|
self.create_sales_invoice(so2)
|
||||||
|
|
||||||
columns, data, message, chart = execute(
|
columns, data, message, chart = execute(
|
||||||
{
|
{
|
||||||
"company": "_Test Company",
|
"company": "_Test Company",
|
||||||
@@ -166,8 +172,7 @@ class TestSalesOrderAnalysis(ERPNextTestSuite):
|
|||||||
"to_date": "2021-06-30",
|
"to_date": "2021-06-30",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
# SO's from first 4 test cases should be in output
|
self.assertEqual(len(data), 2)
|
||||||
self.assertEqual(len(data), 4)
|
|
||||||
|
|
||||||
def test_06_so_pending_delivery_with_multiple_delivery_notes(self):
|
def test_06_so_pending_delivery_with_multiple_delivery_notes(self):
|
||||||
transaction_date = "2021-06-01"
|
transaction_date = "2021-06-01"
|
||||||
|
|||||||
Reference in New Issue
Block a user