[fix] [minor] [test cases]
This commit is contained in:
parent
af4888f11a
commit
cc186da938
@ -243,8 +243,8 @@ test_records = [
|
||||
[{
|
||||
"doctype": "Leave Application",
|
||||
"leave_type": "_Test Leave Type LWP",
|
||||
"from_date": "2013-01-02",
|
||||
"to_date": "2013-01-02",
|
||||
"from_date": "2013-01-15",
|
||||
"to_date": "2013-01-15",
|
||||
"posting_date": "2013-01-02",
|
||||
"fiscal_year": "_Test Fiscal Year 2013",
|
||||
"employee": "_T-Employee-0001",
|
||||
|
@ -87,9 +87,9 @@ class TestMaterialRequest(unittest.TestCase):
|
||||
"parentfield": "mtn_details",
|
||||
"incoming_rate": 100,
|
||||
"qty": qty1,
|
||||
"stock_uom": "_Test UOM",
|
||||
"stock_uom": "_Test UOM 1",
|
||||
"transfer_qty": qty1,
|
||||
"uom": "_Test UOM",
|
||||
"uom": "_Test UOM 1",
|
||||
"t_warehouse": "_Test Warehouse 1 - _TC",
|
||||
},
|
||||
{
|
||||
@ -99,9 +99,9 @@ class TestMaterialRequest(unittest.TestCase):
|
||||
"parentfield": "mtn_details",
|
||||
"incoming_rate": 100,
|
||||
"qty": qty2,
|
||||
"stock_uom": "_Test UOM",
|
||||
"stock_uom": "_Test UOM 1",
|
||||
"transfer_qty": qty2,
|
||||
"uom": "_Test UOM",
|
||||
"uom": "_Test UOM 1",
|
||||
"t_warehouse": "_Test Warehouse 1 - _TC",
|
||||
},
|
||||
])
|
||||
@ -319,7 +319,8 @@ class TestMaterialRequest(unittest.TestCase):
|
||||
mr = webnotes.bean(copy=test_records[0])
|
||||
mr.doc.company = "_Test Company 1"
|
||||
self.assertRaises(WrongWarehouseCompany, mr.insert)
|
||||
|
||||
|
||||
test_dependencies = ["Currency Exchange"]
|
||||
test_records = [
|
||||
[
|
||||
{
|
||||
@ -338,7 +339,7 @@ test_records = [
|
||||
"parentfield": "indent_details",
|
||||
"qty": 54.0,
|
||||
"schedule_date": "2013-02-18",
|
||||
"uom": "_Test UOM",
|
||||
"uom": "_Test UOM 1",
|
||||
"warehouse": "_Test Warehouse - _TC"
|
||||
},
|
||||
{
|
||||
@ -349,7 +350,7 @@ test_records = [
|
||||
"parentfield": "indent_details",
|
||||
"qty": 3.0,
|
||||
"schedule_date": "2013-02-19",
|
||||
"uom": "_Test UOM",
|
||||
"uom": "_Test UOM 1",
|
||||
"warehouse": "_Test Warehouse - _TC"
|
||||
}
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user