diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-28 12:11:20 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-28 15:23:39 +0200 |
commit | dffa7b7d0b6553a5b37081cd164d3ffc0b215040 (patch) | |
tree | 3454e7fcbcd3be877c4ab691062b4bd159967954 /sw/qa/uitest | |
parent | 85511e27d259d6b19cc6c463fc06368c14511bb8 (diff) |
sfx2, solenv, sw: fix issues found by Ruff linter
Change-Id: Iab375e8c8aa4c4915f3c70a9ef6aede268e4619f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171138
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest')
4 files changed, 6 insertions, 9 deletions
diff --git a/sw/qa/uitest/writer_tests2/formatCharacter.py b/sw/qa/uitest/writer_tests2/formatCharacter.py index 724b8813029e..73ee39da9fcf 100644 --- a/sw/qa/uitest/writer_tests2/formatCharacter.py +++ b/sw/qa/uitest/writer_tests2/formatCharacter.py @@ -12,7 +12,6 @@ from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos -from uitest.uihelper.common import select_by_text class formatCharacter(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py b/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py index 0f8e9f1d305e..e6f73b1b052a 100644 --- a/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py +++ b/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py @@ -27,7 +27,7 @@ class dateFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "12/01/99") # select a new format - itemsList.getChild("11").executeAction("SELECT", tuple()); + itemsList.getChild("11").executeAction("SELECT", tuple()) self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "12-01") @@ -73,7 +73,7 @@ class dateFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "12/01/99") # select a new format - itemsList.getChild("11").executeAction("SELECT", tuple()); + itemsList.getChild("11").executeAction("SELECT", tuple()) self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "12-01") @@ -95,7 +95,7 @@ class dateFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "Wed 01/Dec 99") # select a new format - itemsList.getChild("11").executeAction("SELECT", tuple()); + itemsList.getChild("11").executeAction("SELECT", tuple()) self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "12-01") @@ -120,7 +120,7 @@ class dateFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "12/01/99") # select a new format - itemsList.getChild("3").executeAction("SELECT", tuple()); + itemsList.getChild("3").executeAction("SELECT", tuple()) self.assertEqual(get_state_as_dict(itemsList)["SelectEntryText"], "Dec 1, 1999") diff --git a/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py b/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py index c68bc8a73ee0..e043df9b5e24 100644 --- a/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py +++ b/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py @@ -99,7 +99,7 @@ class dropDownFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList.getChild("3"))["Text"], "4000") # select an item from the list and remove it - itemsList.getChild("1").executeAction("SELECT", tuple()); + itemsList.getChild("1").executeAction("SELECT", tuple()) removeButton.executeAction("CLICK", tuple()) # check whether the right item was removed @@ -120,7 +120,7 @@ class dropDownFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList.getChild("2"))["Text"], "4000") # remove all items - itemsList.getChild("1").executeAction("SELECT", tuple()); + itemsList.getChild("1").executeAction("SELECT", tuple()) removeButton.executeAction("CLICK", tuple()) removeButton.executeAction("CLICK", tuple()) removeButton.executeAction("CLICK", tuple()) diff --git a/sw/qa/uitest/writer_tests8/tdf159102.py b/sw/qa/uitest/writer_tests8/tdf159102.py index c4ece7f725fe..5e99efa1a4c4 100644 --- a/sw/qa/uitest/writer_tests8/tdf159102.py +++ b/sw/qa/uitest/writer_tests8/tdf159102.py @@ -81,8 +81,6 @@ class tdf159102(UITestCase): self.xUITest.executeCommand(".uno:GoToEndOfLine") self.xUITest.executeCommand('.uno:StartOfDocumentSel') self.xUITest.executeCommand('.uno:Delete') - paragraphs = writer_doc.Text.createEnumeration() - para1 = paragraphs.nextElement() # disable UITest that fails reliably # # This was "stas.", i.e. too much shrinking # self.assertEqual("sus egestas.", para1.String) |