소스 검색

[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

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

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

self.assertEquals(old_count + 1, new_count)

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

update_link_count()


불러오는 중...
취소
저장