summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2019-08-14 16:18:07 +0200
committerSam Thursfield <sam@afuera.me.uk>2019-08-23 12:39:19 +0300
commit9816ae0679e7958a1759ab3fec947a8b8b2abb5a (patch)
tree39d34fad7ff170ef0095c5059e9bc74182383972
parent90a88678f1ae01c5c3fc37778d48b93758057fd2 (diff)
downloadtracker-9816ae0679e7958a1759ab3fec947a8b8b2abb5a.tar.gz
functional-tests: Move the 'helpers' module into 'trackertestutils'
-rwxr-xr-xtests/functional-tests/17-ontology-changes.py4
-rw-r--r--tests/functional-tests/common/utils/storetest.py7
-rw-r--r--utils/trackertestutils/helpers.py (renamed from tests/functional-tests/common/utils/helpers.py)0
-rw-r--r--utils/trackertestutils/meson.build1
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional-tests/17-ontology-changes.py b/tests/functional-tests/17-ontology-changes.py
index c52b99d2b..d180f2585 100755
--- a/tests/functional-tests/17-ontology-changes.py
+++ b/tests/functional-tests/17-ontology-changes.py
@@ -33,9 +33,9 @@ import tempfile
import time
import trackertestutils.dconf
+import trackertestutils.helpers
from common.utils import configuration as cfg
-from common.utils import helpers
from common.utils.expectedFailure import expectedFailureJournal
import unittest as ut
@@ -117,7 +117,7 @@ class TrackerSystemAbstraction (object):
"""
self.set_up_environment(confdir, ontodir)
- self.store = helpers.StoreHelper(cfg.TRACKER_STORE_PATH)
+ self.store = trackertestutils.helpers.StoreHelper(cfg.TRACKER_STORE_PATH)
self.store.start()
def tracker_store_restart_with_new_ontologies(self, ontodir):
diff --git a/tests/functional-tests/common/utils/storetest.py b/tests/functional-tests/common/utils/storetest.py
index 5cec5475e..06ef3e0d0 100644
--- a/tests/functional-tests/common/utils/storetest.py
+++ b/tests/functional-tests/common/utils/storetest.py
@@ -19,12 +19,11 @@
# 02110-1301, USA.
#
-import unittest as ut
-
import os
import time
+import unittest as ut
-from common.utils.helpers import StoreHelper
+import trackertestutils.helpers
from common.utils import configuration as cfg
@@ -39,7 +38,7 @@ class CommonTrackerStoreTest (ut.TestCase):
def setUpClass(self):
extra_env = {'LC_COLLATE': 'en_GB.utf8'}
- self.tracker = StoreHelper(cfg.TRACKER_STORE_PATH)
+ self.tracker = trackertestutils.helpers.StoreHelper(cfg.TRACKER_STORE_PATH)
self.tracker.start(extra_env=extra_env)
@classmethod
diff --git a/tests/functional-tests/common/utils/helpers.py b/utils/trackertestutils/helpers.py
index 0a82b395a..0a82b395a 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/utils/trackertestutils/helpers.py
diff --git a/utils/trackertestutils/meson.build b/utils/trackertestutils/meson.build
index 163aecfdf..7806ee210 100644
--- a/utils/trackertestutils/meson.build
+++ b/utils/trackertestutils/meson.build
@@ -1,6 +1,7 @@
sources = [
'__init__.py',
'dconf.py',
+ 'helpers.py',
]
install_data(sources,