summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_tests7
diff options
context:
space:
mode:
authorChenxiong Qi <qcxhome@gmail.com>2023-12-17 22:14:09 +0800
committerHossein <hossein@libreoffice.org>2023-12-27 13:48:47 +0100
commit8b6e0dd9e47c20a79fd194f6d530d1c868911bda (patch)
tree9ebad0a155cf126fe6fde2b892bb164aaf914000 /sw/qa/uitest/writer_tests7
parent7ad6ae594fd92b736b4217268eea47c71c04c34a (diff)
tdf#158803 Fix issues detected by pyflakes
Change-Id: Iaa329dff61db894e7d5fecd840e785a53a48b26f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160889 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/writer_tests7')
-rw-r--r--sw/qa/uitest/writer_tests7/tdf132714.py4
-rw-r--r--sw/qa/uitest/writer_tests7/tdf156783.py2
-rw-r--r--sw/qa/uitest/writer_tests7/tdf156784.py2
-rw-r--r--sw/qa/uitest/writer_tests7/tdf156900.py2
4 files changed, 2 insertions, 8 deletions
diff --git a/sw/qa/uitest/writer_tests7/tdf132714.py b/sw/qa/uitest/writer_tests7/tdf132714.py
index cad8ff24e80d..d2a71587ed77 100644
--- a/sw/qa/uitest/writer_tests7/tdf132714.py
+++ b/sw/qa/uitest/writer_tests7/tdf132714.py
@@ -14,7 +14,7 @@ from com.sun.star.awt import MouseEvent
class tdf132714(UITestCase):
def test_tdf132714(self):
- with self.ui_test.load_file(get_url_for_data_file("tdf132714.odt")) as document:
+ with self.ui_test.load_file(get_url_for_data_file("tdf132714.odt")):
# delete second row (first data row) in the associated text table of the chart
self.xUITest.executeCommand(".uno:GoDown")
@@ -90,7 +90,7 @@ class tdf132714(UITestCase):
xSeriesObj = xChartMain.getChild("CID/Page=")
# Without the fix in place, this test would have crashed here
- with self.ui_test.execute_dialog_through_action(xSeriesObj, "COMMAND", mkPropertyValues({"COMMAND": "DataRanges"})) as xDialog:
+ with self.ui_test.execute_dialog_through_action(xSeriesObj, "COMMAND", mkPropertyValues({"COMMAND": "DataRanges"})):
pass
diff --git a/sw/qa/uitest/writer_tests7/tdf156783.py b/sw/qa/uitest/writer_tests7/tdf156783.py
index 2ccdb7dcf6e1..100d816541e1 100644
--- a/sw/qa/uitest/writer_tests7/tdf156783.py
+++ b/sw/qa/uitest/writer_tests7/tdf156783.py
@@ -18,8 +18,6 @@ class tdf156783(UITestCase):
def test_tdf156783(self):
with self.ui_test.load_file(get_url_for_data_file("TC-table-del-add.docx")) as self.document:
- xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit')
-
# accept all tracked changes
self.xUITest.executeCommand(".uno:AcceptAllTrackedChanges")
diff --git a/sw/qa/uitest/writer_tests7/tdf156784.py b/sw/qa/uitest/writer_tests7/tdf156784.py
index 5cac8fc628db..fa522212a8b0 100644
--- a/sw/qa/uitest/writer_tests7/tdf156784.py
+++ b/sw/qa/uitest/writer_tests7/tdf156784.py
@@ -15,8 +15,6 @@ class tdf156784(UITestCase):
def test_tdf156784(self):
with self.ui_test.load_file(get_url_for_data_file("TC-table-del-add.docx")) as self.document:
- xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit')
-
# accept all tracked changes
self.xUITest.executeCommand(".uno:AcceptAllTrackedChanges")
diff --git a/sw/qa/uitest/writer_tests7/tdf156900.py b/sw/qa/uitest/writer_tests7/tdf156900.py
index 545be94242f4..945d91aef365 100644
--- a/sw/qa/uitest/writer_tests7/tdf156900.py
+++ b/sw/qa/uitest/writer_tests7/tdf156900.py
@@ -15,8 +15,6 @@ class tdf156900(UITestCase):
def test_tdf156900(self):
with self.ui_test.load_file(get_url_for_data_file("TC-table-del-add.docx")) as self.document:
- xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit')
-
# accept all tracked changes
self.xUITest.executeCommand(".uno:AcceptAllTrackedChanges")