浏览代码

[fix] test_document.py

version-14
Rushabh Mehta 8 年前
父节点
当前提交
375236339a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/tests/test_document.py

+ 1
- 1
frappe/tests/test_document.py 查看文件

@@ -196,13 +196,13 @@ class TestDocument(unittest.TestCase):
old_count = link_count.get((doctype, name)) or 0 old_count = link_count.get((doctype, name)) or 0


d.save() d.save()
frappe.db.commit()


link_count = frappe.cache().get_value('_link_count') or {} link_count = frappe.cache().get_value('_link_count') or {}
new_count = link_count.get((doctype, name)) or 0 new_count = link_count.get((doctype, name)) or 0


self.assertEquals(old_count + 1, new_count) self.assertEquals(old_count + 1, new_count)


frappe.db.commit()
before_update = frappe.db.get_value(doctype, name, 'idx') before_update = frappe.db.get_value(doctype, name, 'idx')


update_link_count() update_link_count()


正在加载...
取消
保存