App: fix Expression _moveCells()

The problem is caused by not refreshing ObjectIdentifier internal cache
after change.
This commit is contained in:
Zheng, Lei
2019-12-16 11:34:52 +08:00
committed by wwmayer
parent 6562946e36
commit d5a4996d25
4 changed files with 32 additions and 15 deletions

View File

@@ -664,6 +664,9 @@ class SpreadsheetCases(unittest.TestCase):
sheet = self.doc.addObject('Spreadsheet::Sheet','Spreadsheet')
sheet.set('B1', '=B2')
sheet.set('B2', '124')
# Calling getContents() here activates ObjectIdentifier internal cache,
# which needs to be tested as well.
self.assertEqual(sheet.getContents("B1"),"=B2")
sheet.insertRows('2', 1)
self.assertEqual(sheet.getContents("B1"),"=B3")