pricing rule: fixes in testcase

This commit is contained in:
Nabin Hait 2014-02-28 15:04:05 +05:30
parent 3319170805
commit 13b93ebed8
3 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@
{
"creation": "2014-02-21 15:02:51",
"docstatus": 0,
"modified": "2014-02-27 18:08:42",
"modified": "2014-02-28 14:49:15",
"modified_by": "Administrator",
"owner": "Administrator"
},
@ -24,6 +24,7 @@
},
{
"create": 1,
"delete": 1,
"doctype": "DocPerm",
"name": "__common__",
"parent": "Pricing Rule",

View File

@ -68,9 +68,7 @@ class TestPricingRule(unittest.TestCase):
details = get_item_details(args)
self.assertEquals(details.get("discount_percentage"), 15)
frappe.db.sql("delete * from `tabPricing Rule`")
test_records = [
[{

View File

@ -37,13 +37,15 @@ class TestItem(unittest.TestCase):
"amount": 0.0,
"base_amount": 0.0,
"batch_no": None,
"item_tax_rate": {},
"item_tax_rate": '{}',
"uom": "_Test UOM",
"conversion_factor": 1.0,
}
make_test_records("Item Price")
frappe.db.sql("delete from `tabPricing Rule`")
details = get_item_details({
"item_code": "_Test Item",
"company": "_Test Company",