Browse Source

[fix] test_document.py

version-14
Rushabh Mehta 8 years ago
parent
commit
ecadb8ab23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      frappe/tests/test_document.py

+ 2
- 1
frappe/tests/test_document.py View File

@@ -192,10 +192,11 @@ class TestDocument(unittest.TestCase):
d.ref_type = doctype d.ref_type = doctype
d.ref_name = name d.ref_name = name


d.save()

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


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


link_count = frappe.cache().get_value('_link_count') or {} link_count = frappe.cache().get_value('_link_count') or {}


Loading…
Cancel
Save