[tests] update travis.yml to run ui-tests (#9748)

* [tests] update travis.yml to run ui-tests

* [tests] update travis.yml to run ui-tests

* [test] fix item_group.py

* [test] fix item_group.py

* [check] daily work summary fails?

* [check] daily work summary fails?

* [check] daily work summary fails?

* [check] daily work summary fails?

* [check] daily work summary fails?

* [check] daily work summary fails?

* [check] no scheduled jobs for tests

* [check] daily work summary fails?

* [check] daily work summary fails?
This commit is contained in:
Rushabh Mehta
2017-07-10 23:00:01 +05:30
committed by GitHub
parent f7d2a59c18
commit 4a7b4efbec
4 changed files with 68 additions and 60 deletions

View File

@@ -136,7 +136,7 @@ def get_group_item_count(item_group):
def get_parent_item_groups(item_group_name):
item_group = frappe.get_doc("Item Group", item_group_name)
return [{"name": frappe._("Home"),"route":"/"}]+\
return [{"name": frappe._("Home"), "route":"/"}]+\
frappe.db.sql("""select name, route from `tabItem Group`
where lft <= %s and rgt >= %s
and show_in_website=1
@@ -147,7 +147,6 @@ def invalidate_cache_for(doc, item_group=None):
item_group = doc.name
for d in get_parent_item_groups(item_group):
if frappe.db.exists("Item Group", d.get("name")):
d = frappe.get_doc("Item Group", d.get("name"))
if d.route:
clear_cache(d.route)
item_group_name = frappe.db.get_value("Item Group", d.get('name'))
if item_group_name:
clear_cache(frappe.db.get_value('Item Group', item_group_name, 'route'))