mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
[fix] [minor] [test cases]
This commit is contained in:
@@ -243,8 +243,8 @@ test_records = [
|
|||||||
[{
|
[{
|
||||||
"doctype": "Leave Application",
|
"doctype": "Leave Application",
|
||||||
"leave_type": "_Test Leave Type LWP",
|
"leave_type": "_Test Leave Type LWP",
|
||||||
"from_date": "2013-01-02",
|
"from_date": "2013-01-15",
|
||||||
"to_date": "2013-01-02",
|
"to_date": "2013-01-15",
|
||||||
"posting_date": "2013-01-02",
|
"posting_date": "2013-01-02",
|
||||||
"fiscal_year": "_Test Fiscal Year 2013",
|
"fiscal_year": "_Test Fiscal Year 2013",
|
||||||
"employee": "_T-Employee-0001",
|
"employee": "_T-Employee-0001",
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ class TestMaterialRequest(unittest.TestCase):
|
|||||||
"parentfield": "mtn_details",
|
"parentfield": "mtn_details",
|
||||||
"incoming_rate": 100,
|
"incoming_rate": 100,
|
||||||
"qty": qty1,
|
"qty": qty1,
|
||||||
"stock_uom": "_Test UOM",
|
"stock_uom": "_Test UOM 1",
|
||||||
"transfer_qty": qty1,
|
"transfer_qty": qty1,
|
||||||
"uom": "_Test UOM",
|
"uom": "_Test UOM 1",
|
||||||
"t_warehouse": "_Test Warehouse 1 - _TC",
|
"t_warehouse": "_Test Warehouse 1 - _TC",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -99,9 +99,9 @@ class TestMaterialRequest(unittest.TestCase):
|
|||||||
"parentfield": "mtn_details",
|
"parentfield": "mtn_details",
|
||||||
"incoming_rate": 100,
|
"incoming_rate": 100,
|
||||||
"qty": qty2,
|
"qty": qty2,
|
||||||
"stock_uom": "_Test UOM",
|
"stock_uom": "_Test UOM 1",
|
||||||
"transfer_qty": qty2,
|
"transfer_qty": qty2,
|
||||||
"uom": "_Test UOM",
|
"uom": "_Test UOM 1",
|
||||||
"t_warehouse": "_Test Warehouse 1 - _TC",
|
"t_warehouse": "_Test Warehouse 1 - _TC",
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
@@ -320,6 +320,7 @@ class TestMaterialRequest(unittest.TestCase):
|
|||||||
mr.doc.company = "_Test Company 1"
|
mr.doc.company = "_Test Company 1"
|
||||||
self.assertRaises(WrongWarehouseCompany, mr.insert)
|
self.assertRaises(WrongWarehouseCompany, mr.insert)
|
||||||
|
|
||||||
|
test_dependencies = ["Currency Exchange"]
|
||||||
test_records = [
|
test_records = [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@@ -338,7 +339,7 @@ test_records = [
|
|||||||
"parentfield": "indent_details",
|
"parentfield": "indent_details",
|
||||||
"qty": 54.0,
|
"qty": 54.0,
|
||||||
"schedule_date": "2013-02-18",
|
"schedule_date": "2013-02-18",
|
||||||
"uom": "_Test UOM",
|
"uom": "_Test UOM 1",
|
||||||
"warehouse": "_Test Warehouse - _TC"
|
"warehouse": "_Test Warehouse - _TC"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -349,7 +350,7 @@ test_records = [
|
|||||||
"parentfield": "indent_details",
|
"parentfield": "indent_details",
|
||||||
"qty": 3.0,
|
"qty": 3.0,
|
||||||
"schedule_date": "2013-02-19",
|
"schedule_date": "2013-02-19",
|
||||||
"uom": "_Test UOM",
|
"uom": "_Test UOM 1",
|
||||||
"warehouse": "_Test Warehouse - _TC"
|
"warehouse": "_Test Warehouse - _TC"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user