summaryrefslogtreecommitdiff
path: root/sfx2/qa
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 /sfx2/qa
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 'sfx2/qa')
-rw-r--r--sfx2/qa/python/check_sidebar.py8
-rw-r--r--sfx2/qa/python/check_sidebar_registry.py2
-rw-r--r--sfx2/qa/uitest/doc/objserv.py2
3 files changed, 1 insertions, 11 deletions
diff --git a/sfx2/qa/python/check_sidebar.py b/sfx2/qa/python/check_sidebar.py
index 59cc955b8016..7f188baa4ba7 100644
--- a/sfx2/qa/python/check_sidebar.py
+++ b/sfx2/qa/python/check_sidebar.py
@@ -8,15 +8,8 @@
#
import unittest
-import unohelper
-import os
from org.libreoffice.unotest import UnoInProcess
-from com.sun.star.ui import XSidebarProvider
-from com.sun.star.ui import XDecks
-from com.sun.star.ui import XDeck
-from com.sun.star.ui import XPanels
-from com.sun.star.ui import XPanel
class CheckSidebar(unittest.TestCase):
@@ -38,7 +31,6 @@ class CheckSidebar(unittest.TestCase):
assert(xSidebar)
xSidebar.setVisible(True)
- isVisible = xSidebar.isVisible()
self.assertTrue ( xSidebar.isVisible() )
# TODO: does not work in unit test context
diff --git a/sfx2/qa/python/check_sidebar_registry.py b/sfx2/qa/python/check_sidebar_registry.py
index 47b8eecdefb9..bc247006ccc0 100644
--- a/sfx2/qa/python/check_sidebar_registry.py
+++ b/sfx2/qa/python/check_sidebar_registry.py
@@ -8,8 +8,6 @@
#
import unittest
-import unohelper
-import os
from org.libreoffice.unotest import UnoInProcess
import uno
diff --git a/sfx2/qa/uitest/doc/objserv.py b/sfx2/qa/uitest/doc/objserv.py
index 627469ae9323..f67198bd1607 100644
--- a/sfx2/qa/uitest/doc/objserv.py
+++ b/sfx2/qa/uitest/doc/objserv.py
@@ -13,7 +13,7 @@ class Test(UITestCase):
def testPdfSigning(self):
# Start Impress.
- with self.ui_test.load_file(get_url_for_data_file("pdf-sign.pdf")) as impress_doc:
+ with self.ui_test.load_file(get_url_for_data_file("pdf-sign.pdf")):
# Now use File -> Digital signatures -> Digital signatures.
with self.ui_test.execute_dialog_through_command(".uno:Signature", close_button="close"):