diff options
Diffstat (limited to 'sw/qa/python')
-rw-r--r-- | sw/qa/python/check_cross_references.py | 11 | ||||
-rw-r--r-- | sw/qa/python/check_indexed_property_values.py | 3 | ||||
-rw-r--r-- | sw/qa/python/check_named_property_values.py | 4 | ||||
-rw-r--r-- | sw/qa/python/check_range_properties.py | 5 | ||||
-rw-r--r-- | sw/qa/python/check_styles.py | 1 | ||||
-rw-r--r-- | sw/qa/python/check_xautotextcontainer.py | 1 | ||||
-rw-r--r-- | sw/qa/python/check_xautotextgroup.py | 1 | ||||
-rw-r--r-- | sw/qa/python/check_xmodel.py | 2 | ||||
-rw-r--r-- | sw/qa/python/text_portion_enumeration_test.py | 4 | ||||
-rw-r--r-- | sw/qa/python/xcontrolshape.py | 2 | ||||
-rw-r--r-- | sw/qa/python/xstyleloader.py | 3 | ||||
-rw-r--r-- | sw/qa/python/xtext.py | 1 | ||||
-rw-r--r-- | sw/qa/python/xtextcursor.py | 3 | ||||
-rwxr-xr-x | sw/qa/python/xtextfieldssupplier.py | 2 | ||||
-rw-r--r-- | sw/qa/python/xtextrange.py | 3 |
15 files changed, 2 insertions, 44 deletions
diff --git a/sw/qa/python/check_cross_references.py b/sw/qa/python/check_cross_references.py index 6aad1c47ca3a..de51d919c7c8 100644 --- a/sw/qa/python/check_cross_references.py +++ b/sw/qa/python/check_cross_references.py @@ -16,17 +16,6 @@ the License at http://www.apache.org/licenses/LICENSE-2.0 . ''' import unittest -import unohelper -import os -from com.sun.star.lang import XMultiServiceFactory -from com.sun.star.text import XTextDocument -from com.sun.star.text import XTextField -from com.sun.star.container import XEnumeration -from com.sun.star.util import XRefreshable -from com.sun.star.container import XEnumerationAccess -from com.sun.star.beans import XPropertySet -from com.sun.star.text import XTextFieldsSupplier -from com.sun.star.container import XNamed from com.sun.star.text.ReferenceFieldPart import (NUMBER, NUMBER_NO_CONTEXT, NUMBER_FULL_CONTEXT, TEXT) from com.sun.star.text.ReferenceFieldSource import BOOKMARK from org.libreoffice.unotest import UnoInProcess diff --git a/sw/qa/python/check_indexed_property_values.py b/sw/qa/python/check_indexed_property_values.py index ceaf82a6cac6..4179872cea4b 100644 --- a/sw/qa/python/check_indexed_property_values.py +++ b/sw/qa/python/check_indexed_property_values.py @@ -17,12 +17,9 @@ ''' import unittest -import unohelper import uno from org.libreoffice.unotest import UnoInProcess from com.sun.star.beans import PropertyValue -from com.sun.star.container import XIndexContainer -from org.libreoffice.unotest import OfficeConnection from com.sun.star.lang import IllegalArgumentException from com.sun.star.lang import IndexOutOfBoundsException diff --git a/sw/qa/python/check_named_property_values.py b/sw/qa/python/check_named_property_values.py index 1a81d13a6323..d11ee2e46651 100644 --- a/sw/qa/python/check_named_property_values.py +++ b/sw/qa/python/check_named_property_values.py @@ -17,13 +17,9 @@ ''' import unittest -import unohelper -import os import uno from org.libreoffice.unotest import UnoInProcess from com.sun.star.beans import PropertyValue -from com.sun.star.container import XNameContainer -from org.libreoffice.unotest import OfficeConnection from com.sun.star.container import ElementExistException from com.sun.star.lang import IllegalArgumentException from com.sun.star.container import NoSuchElementException diff --git a/sw/qa/python/check_range_properties.py b/sw/qa/python/check_range_properties.py index 2be93686242a..26babf5220ce 100644 --- a/sw/qa/python/check_range_properties.py +++ b/sw/qa/python/check_range_properties.py @@ -7,13 +7,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import math import unittest from org.libreoffice.unotest import UnoInProcess -from com.sun.star.container import NoSuchElementException -from com.sun.star.beans import UnknownPropertyException -from com.sun.star.lang import IndexOutOfBoundsException -from com.sun.star.lang import IllegalArgumentException class CheckRangeProperties(unittest.TestCase): diff --git a/sw/qa/python/check_styles.py b/sw/qa/python/check_styles.py index 48a46a770988..d19f9850b445 100644 --- a/sw/qa/python/check_styles.py +++ b/sw/qa/python/check_styles.py @@ -7,7 +7,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import math import unittest from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import NoSuchElementException diff --git a/sw/qa/python/check_xautotextcontainer.py b/sw/qa/python/check_xautotextcontainer.py index c460c3d0eaa6..b01125dca3f4 100644 --- a/sw/qa/python/check_xautotextcontainer.py +++ b/sw/qa/python/check_xautotextcontainer.py @@ -11,7 +11,6 @@ import unittest from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import NoSuchElementException from com.sun.star.lang import IllegalArgumentException -from com.sun.star.uno import RuntimeException class XAutoTextContainer(unittest.TestCase): # 0 indicates the path of the Office Basis layer diff --git a/sw/qa/python/check_xautotextgroup.py b/sw/qa/python/check_xautotextgroup.py index a41987103e6b..504f12dcd422 100644 --- a/sw/qa/python/check_xautotextgroup.py +++ b/sw/qa/python/check_xautotextgroup.py @@ -11,7 +11,6 @@ import unittest from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import ElementExistException from com.sun.star.container import NoSuchElementException -from com.sun.star.uno import RuntimeException class XAutoTextGroup(unittest.TestCase): diff --git a/sw/qa/python/check_xmodel.py b/sw/qa/python/check_xmodel.py index 27740958ddb1..6487b4781be2 100644 --- a/sw/qa/python/check_xmodel.py +++ b/sw/qa/python/check_xmodel.py @@ -8,11 +8,9 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.lang import IllegalArgumentException from com.sun.star.beans import PropertyValue -import uno class TestXModel(unittest.TestCase): diff --git a/sw/qa/python/text_portion_enumeration_test.py b/sw/qa/python/text_portion_enumeration_test.py index 52b1c2c8b702..47f7c21e5307 100644 --- a/sw/qa/python/text_portion_enumeration_test.py +++ b/sw/qa/python/text_portion_enumeration_test.py @@ -20,11 +20,11 @@ This file incorporates work covered by the following license notice: import uno import unittest import os.path -from org.libreoffice.unotest import UnoInProcess, mkPropertyValue +from org.libreoffice.unotest import UnoInProcess from tempfile import TemporaryDirectory from com.sun.star.uno import RuntimeException from com.sun.star.lang import IllegalArgumentException, NoSupportException -from com.sun.star.beans import PropertyValue, StringPair +from com.sun.star.beans import StringPair from com.sun.star.rdf.URIs import ODF_PREFIX, ODF_SUFFIX from com.sun.star.i18n.NumberFormatIndex import NUMBER_INT from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK, HARD_HYPHEN diff --git a/sw/qa/python/xcontrolshape.py b/sw/qa/python/xcontrolshape.py index 336a6d3449c0..899c0c20b863 100644 --- a/sw/qa/python/xcontrolshape.py +++ b/sw/qa/python/xcontrolshape.py @@ -8,10 +8,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.beans import UnknownPropertyException -import uno class TestXControlShape(unittest.TestCase): diff --git a/sw/qa/python/xstyleloader.py b/sw/qa/python/xstyleloader.py index ed2d7ffca4a4..92b901b9d527 100644 --- a/sw/qa/python/xstyleloader.py +++ b/sw/qa/python/xstyleloader.py @@ -8,11 +8,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import os import pathlib import unittest -import unohelper -import uno from org.libreoffice.unotest import UnoInProcess, makeCopyFromTDOC from com.sun.star.beans import PropertyValue diff --git a/sw/qa/python/xtext.py b/sw/qa/python/xtext.py index 6d82647bf6b4..db1f83803148 100644 --- a/sw/qa/python/xtext.py +++ b/sw/qa/python/xtext.py @@ -11,7 +11,6 @@ import unittest from org.libreoffice.unotest import UnoInProcess -from com.sun.star.lang import IllegalArgumentException class TestXText(unittest.TestCase): diff --git a/sw/qa/python/xtextcursor.py b/sw/qa/python/xtextcursor.py index 30d0518690a7..2c374bee5870 100644 --- a/sw/qa/python/xtextcursor.py +++ b/sw/qa/python/xtextcursor.py @@ -8,10 +8,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess -import uno -import time class TestXTextCursor(unittest.TestCase): diff --git a/sw/qa/python/xtextfieldssupplier.py b/sw/qa/python/xtextfieldssupplier.py index f99b0fc85ab7..76004a095f26 100755 --- a/sw/qa/python/xtextfieldssupplier.py +++ b/sw/qa/python/xtextfieldssupplier.py @@ -8,10 +8,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import NoSuchElementException -import uno class TestXTextFieldsSupplier(unittest.TestCase): diff --git a/sw/qa/python/xtextrange.py b/sw/qa/python/xtextrange.py index 75e4aed79561..583cabc30aba 100644 --- a/sw/qa/python/xtextrange.py +++ b/sw/qa/python/xtextrange.py @@ -8,10 +8,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess -import uno -import time class TestXTextRange(unittest.TestCase): |