diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-13 16:35:28 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-14 08:34:22 +0100 |
commit | 4418f099661033702b8fb94572bd0a1bfecbd55b (patch) | |
tree | 0e72de688943b0ed01ad51340dd31a6288ab7c3c /sc/qa/uitest/statistics | |
parent | 0918eade90e19dd8e9a246446dcb9463c6c7f7cc (diff) |
uitest: sc: factor out common code ( part 2 )
Change-Id: Ia2a707f1df513e067c8e34b263ad336fed6d14dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109235
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/statistics')
-rw-r--r-- | sc/qa/uitest/statistics/regression.py | 8 | ||||
-rw-r--r-- | sc/qa/uitest/statistics/tdf76731.py | 9 |
2 files changed, 3 insertions, 14 deletions
diff --git a/sc/qa/uitest/statistics/regression.py b/sc/qa/uitest/statistics/regression.py index db9c3a08cb6d..588b1bea77fc 100644 --- a/sc/qa/uitest/statistics/regression.py +++ b/sc/qa/uitest/statistics/regression.py @@ -5,18 +5,12 @@ # 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 +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from uitest.uihelper.common import select_pos from uitest.uihelper.calc import enter_text_to_cell from libreoffice.calc.document import get_sheet_from_doc -from uitest.debug import sleep from libreoffice.calc.document import get_cell_by_position from libreoffice.uno.propertyvalue import mkPropertyValues -import org.libreoffice.unotest -import pathlib - -def get_url_for_data_file(file_name): - return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() class regression(UITestCase): def test_regression_row(self): diff --git a/sc/qa/uitest/statistics/tdf76731.py b/sc/qa/uitest/statistics/tdf76731.py index 0dc1f86cb734..48db1ff350d2 100644 --- a/sc/qa/uitest/statistics/tdf76731.py +++ b/sc/qa/uitest/statistics/tdf76731.py @@ -5,20 +5,15 @@ # 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 +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from uitest.uihelper.common import select_pos from uitest.uihelper.calc import enter_text_to_cell from libreoffice.calc.document import get_sheet_from_doc from libreoffice.calc.conditional_format import get_conditional_format_from_sheet -from uitest.debug import sleep from libreoffice.calc.document import get_cell_by_position from libreoffice.uno.propertyvalue import mkPropertyValues -import org.libreoffice.unotest -import pathlib -#Bug 76731 - ANOVA: F critical is not shown -def get_url_for_data_file(file_name): - return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() +#Bug 76731 - ANOVA: F critical is not shown class anova(UITestCase): def test_tdf76731_anova(self): |