summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorHannah Meeks <hmeeks4135@gmail.com>2022-04-16 18:07:54 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-04-19 17:12:30 +0200
commit182833b893ae4ad7430479f2dfebcc9c130cf27c (patch)
tree23032e877047c0a0aedaea80702e36c483337ba6 /cui
parentc929c563e2029bbb969dc417a688cca8934e69b0 (diff)
tdf#97361 - make unit tests more pythonic.
Change-Id: I853cda76522ebf3c9a8f7389d5b2b6fc9611f502 Signed-off-by: Hannah Meeks <hmeeks4135@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133136 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/qa/uitest/dialogs/chardlg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/qa/uitest/dialogs/chardlg.py b/cui/qa/uitest/dialogs/chardlg.py
index 21a1582567a0..c52664f36d0e 100644
--- a/cui/qa/uitest/dialogs/chardlg.py
+++ b/cui/qa/uitest/dialogs/chardlg.py
@@ -35,8 +35,8 @@ class Test(UITestCase):
xFontTransparency.executeAction("UP", tuple())
# Verify the result.
- drawPage = component.getDrawPages().getByIndex(0)
- shape = drawPage.getByIndex(0)
+ drawPage = component.getDrawPages()[0]
+ shape = drawPage[0]
# Without the accompanying fix in place, this test would have failed with:
# AssertionError: 100 != 5