[fix] test cases fix for price list

This commit is contained in:
Akhilesh Darjee
2013-09-11 16:18:10 +05:30
parent c3ec72c991
commit fb6d410e60
6 changed files with 11 additions and 13 deletions

View File

@@ -1,6 +1,9 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
test_ignore = ["Price List"]
test_records = [
[{
"doctype": "Customer Group",

View File

@@ -13,6 +13,8 @@ class TestItem(unittest.TestCase):
price_list.doclist.append(webnotes.doc(item_price.fields.copy()))
self.assertRaises(PriceListDuplicateItem, price_list.insert)
# test_ignore = ["Item"]
test_records = [
[
{

View File

@@ -101,7 +101,6 @@ class DocType:
'default_currency': args.get('currency'),
'default_company':args.get('company_name'),
'date_format': webnotes.conn.get_value("Country", args.get("country"), "date_format"),
'emp_created_by':'Naming Series',
"float_precision": 4
})
global_defaults.save()
@@ -135,6 +134,10 @@ class DocType:
notification_control.doc.purchase_order = 1
notification_control.save()
hr_settings = webnotes.bean("HR Settings")
hr_settings.doc.emp_created_by = "Naming Series"
hr_settings.save()
# control panel
cp = webnotes.doc("Control Panel", "Control Panel")
for k in ['country', 'timezone', 'company_name']: