summaryrefslogtreecommitdiff
path: root/tests/functional-tests/common/utils/storetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional-tests/common/utils/storetest.py')
-rw-r--r--tests/functional-tests/common/utils/storetest.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/functional-tests/common/utils/storetest.py b/tests/functional-tests/common/utils/storetest.py
index be16b6caa..3a5da0372 100644
--- a/tests/functional-tests/common/utils/storetest.py
+++ b/tests/functional-tests/common/utils/storetest.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
#
# Copyright (C) 2010, Nokia <ivan.frade@nokia.com>
+# Copyright (C) 2018, Sam Thursfield <sam@afuera.me.uk>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -17,29 +18,28 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
-import time
-#sys.path.insert (0, "../..")
+import unittest2 as ut
+
+import os
+import time
-from common.utils.system import TrackerSystemAbstraction
from common.utils.helpers import StoreHelper
from common.utils import configuration as cfg
-import unittest2 as ut
-#import unittest as ut
class CommonTrackerStoreTest (ut.TestCase):
"""
Common superclass for tests that just require a fresh store running
"""
@classmethod
- def setUpClass (self):
- #print "Starting the daemon in test mode"
- self.system = TrackerSystemAbstraction ()
- self.system.tracker_store_testing_start ()
- self.tracker = self.system.store
+ def setUpClass (self):
+ env = os.environ
+ env['LC_COLLATE'] = 'en_GB.utf8'
+
+ self.tracker = StoreHelper()
+ self.tracker.start(env=env)
@classmethod
def tearDownClass (self):
- #print "Stopping the daemon in test mode (Doing nothing now)"
- self.system.tracker_store_testing_stop ()
+ self.tracker.stop()