mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
[fix] test cases fix for price list
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 = [
|
||||
[
|
||||
{
|
||||
|
||||
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user