summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests2
diff options
context:
space:
mode:
authorChenxiong Qi <qcxhome@gmail.com>2023-12-20 20:54:05 +0800
committerHossein <hossein@libreoffice.org>2024-01-23 14:00:46 +0100
commit74de0ebb810f3e13c45f01c63067cb8de794ce3c (patch)
treeb5f069ad74d12b5ce095b4ad9159861fd1445614 /sc/qa/uitest/calc_tests2
parent3a20c691ab1d6a16ad0fc144926b22c098552be4 (diff)
tdf#97361 Make unittests more pythonic: XIndexAccess
Change-Id: I05ef274dd0ad5dc35b5455cfc01feabc6c0820a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161276 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/calc_tests2')
-rw-r--r--sc/qa/uitest/calc_tests2/tdf114992.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/uitest/calc_tests2/tdf114992.py b/sc/qa/uitest/calc_tests2/tdf114992.py
index 6f1b888d616c..50adb56f74aa 100644
--- a/sc/qa/uitest/calc_tests2/tdf114992.py
+++ b/sc/qa/uitest/calc_tests2/tdf114992.py
@@ -16,8 +16,8 @@ class tdf114992(UITestCase):
with self.ui_test.load_file(get_url_for_data_file("tdf114992.ods")) as calc_doc:
self.xUITest.executeCommand(".uno:Remove")
- self.assertEqual(calc_doc.Sheets.getCount(), 1)
+ self.assertEqual(len(calc_doc.Sheets), 1)
self.xUITest.executeCommand(".uno:Undo")
- self.assertEqual(calc_doc.Sheets.getCount(), 2)
+ self.assertEqual(len(calc_doc.Sheets), 2)
# vim: set shiftwidth=4 softtabstop=4 expandtab: