summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-04-07 10:31:13 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-04-07 18:20:17 +0200
commitbd78ce123cd65fb8d0843df1d2530a168d5d464d (patch)
treee0f72c7b9ca1b3d54fc5a0917bf23aca5d10282f /sfx2
parent54209acb41b25422ce708da3a2aa33d124d3053c (diff)
uitest: remove duplicated code
Change-Id: I86a4cd75e103445a288ad52a8c2167fa5b20c794 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113720 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/qa/uitest/doc/objserv.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/sfx2/qa/uitest/doc/objserv.py b/sfx2/qa/uitest/doc/objserv.py
index 692d0fb88e17..58ac79aebe20 100644
--- a/sfx2/qa/uitest/doc/objserv.py
+++ b/sfx2/qa/uitest/doc/objserv.py
@@ -5,13 +5,7 @@
#
from uitest.framework import UITestCase
-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()
-
+from uitest.uihelper.common import get_url_for_data_file
# Test for sfx2/source/doc/objserv.cxx.
class Test(UITestCase):