sd/qa/uitest/impress_tests/autocorrectOptions.py | 2 +- sd/qa/uitest/impress_tests/exportToPDF.py | 3 ++- sd/qa/uitest/impress_tests/insertSlide.py | 5 +---- sd/qa/uitest/impress_tests/masterElements.py | 4 +--- sd/qa/uitest/impress_tests/tdf134734.py | 3 +-- sd/qa/uitest/impress_tests2/tdf127900.py | 4 +++- sd/qa/uitest/impress_tests2/tdf139511.py | 1 - sd/qa/uitest/impress_tests2/tdf148810.py | 1 - uitest/uitest/uihelper/testDialog.py | 2 +- 9 files changed, 10 insertions(+), 15 deletions(-)
New commits: commit eedb077f8860e02838b37d75c230e51cd290a283 Author: Bogdan B <buzea.bog...@libreoffice.org> AuthorDate: Fri Nov 11 20:14:10 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Nov 15 17:41:46 2022 +0100 tdf#132293 remove unused imports from uitest Change-Id: I5943ec84a0b5ed6f44af9e3f972626813987a1cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142615 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/qa/uitest/impress_tests/autocorrectOptions.py b/sd/qa/uitest/impress_tests/autocorrectOptions.py index a79facecc204..2f4b7645e30c 100644 --- a/sd/qa/uitest/impress_tests/autocorrectOptions.py +++ b/sd/qa/uitest/impress_tests/autocorrectOptions.py @@ -10,9 +10,9 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict -import time from uitest.uihelper.common import select_pos + class autocorrectOptions(UITestCase): def test_autocorrect_options_impress(self): diff --git a/sd/qa/uitest/impress_tests/exportToPDF.py b/sd/qa/uitest/impress_tests/exportToPDF.py index 4dcaa4954405..72a8ac916a46 100644 --- a/sd/qa/uitest/impress_tests/exportToPDF.py +++ b/sd/qa/uitest/impress_tests/exportToPDF.py @@ -8,12 +8,13 @@ # from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file +from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues from org.libreoffice.unotest import systemPathToFileUrl from tempfile import TemporaryDirectory import os.path + class exportToPDF(UITestCase): def test_checkDefaultValues(self): diff --git a/sd/qa/uitest/impress_tests/insertSlide.py b/sd/qa/uitest/impress_tests/insertSlide.py index f81d0792f2b5..83f33c59782c 100644 --- a/sd/qa/uitest/impress_tests/insertSlide.py +++ b/sd/qa/uitest/impress_tests/insertSlide.py @@ -8,12 +8,9 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict -import time -from uitest.uihelper.common import select_pos #Bug 85360 - LibreOffice crashes and crashes desktop too on inserting 4th slide + class insertSlide(UITestCase): def test_insert_slide(self): diff --git a/sd/qa/uitest/impress_tests/masterElements.py b/sd/qa/uitest/impress_tests/masterElements.py index ad277ca25c71..9950be9e232c 100644 --- a/sd/qa/uitest/impress_tests/masterElements.py +++ b/sd/qa/uitest/impress_tests/masterElements.py @@ -8,10 +8,8 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict -import time -from uitest.uihelper.common import select_pos + class masterElements(UITestCase): diff --git a/sd/qa/uitest/impress_tests/tdf134734.py b/sd/qa/uitest/impress_tests/tdf134734.py index 57559c4ead52..8320246272b7 100644 --- a/sd/qa/uitest/impress_tests/tdf134734.py +++ b/sd/qa/uitest/impress_tests/tdf134734.py @@ -8,11 +8,10 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, select_pos from uitest.uihelper.common import change_measurement_unit from com.sun.star.drawing.FillStyle import SOLID -import importlib + class TestClass(UITestCase): def test_master_page_background(self): diff --git a/sd/qa/uitest/impress_tests2/tdf127900.py b/sd/qa/uitest/impress_tests2/tdf127900.py index b85e602fa995..e32b76591aad 100644 --- a/sd/qa/uitest/impress_tests2/tdf127900.py +++ b/sd/qa/uitest/impress_tests2/tdf127900.py @@ -6,11 +6,13 @@ # 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/. # + from uitest.framework import UITestCase -from uitest.uihelper.common import select_pos, get_state_as_dict +from uitest.uihelper.common import select_pos from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_url_for_data_file + class tdf127900(UITestCase): def test_tdf127900(self): diff --git a/sd/qa/uitest/impress_tests2/tdf139511.py b/sd/qa/uitest/impress_tests2/tdf139511.py index 3c1988510888..4ff7a67090a1 100644 --- a/sd/qa/uitest/impress_tests2/tdf139511.py +++ b/sd/qa/uitest/impress_tests2/tdf139511.py @@ -8,7 +8,6 @@ # from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import change_measurement_unit diff --git a/sd/qa/uitest/impress_tests2/tdf148810.py b/sd/qa/uitest/impress_tests2/tdf148810.py index 31f591a6282f..6ae79b8e1670 100755 --- a/sd/qa/uitest/impress_tests2/tdf148810.py +++ b/sd/qa/uitest/impress_tests2/tdf148810.py @@ -10,7 +10,6 @@ from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.framework import UITestCase -import time class Tdf148810(UITestCase): diff --git a/uitest/uitest/uihelper/testDialog.py b/uitest/uitest/uihelper/testDialog.py index 0e443643645f..488b202f60ae 100644 --- a/uitest/uitest/uihelper/testDialog.py +++ b/uitest/uitest/uihelper/testDialog.py @@ -5,9 +5,9 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -from uitest.framework import UITestCase from uitest.uihelper.common import get_state_as_dict + # opens the dialogs, closes it with the given close button # and if there is an "OK" button open the dialog again and close it by using the OK button # the test only checks if LibreOffice crashes by opening the dialog