[tracker-miners/sam/umockdev: 37/39] functional-tests: Use dconf helper



commit b89754f40106144172768ffe483b008a30322b95
Author: Sam Thursfield <sam afuera me uk>
Date:   Fri May 22 20:59:04 2020 +0200

    functional-tests: Use dconf helper
    
    This depends on a small change in tracker.git added in 
https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/254

 tests/functional-tests/fixtures.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/tests/functional-tests/fixtures.py b/tests/functional-tests/fixtures.py
index 26f131995..8b0fe892b 100644
--- a/tests/functional-tests/fixtures.py
+++ b/tests/functional-tests/fixtures.py
@@ -40,7 +40,6 @@ import sys
 import time
 import unittest as ut
 
-import trackertestutils.dconf
 import trackertestutils.helpers
 import configuration as cfg
 from minerhelper import MinerFsHelper
@@ -108,10 +107,7 @@ class TrackerMinerTest(ut.TestCase):
             # function.
             os.makedirs(self.indexed_dir, exist_ok=True)
 
-            for schema_name, contents in self.config().items():
-                dconf = trackertestutils.dconf.DConfClient(self.sandbox)
-                for key, value in contents.items():
-                    dconf.write(schema_name, key, value)
+            self.sandbox.set_config(self.config())
 
             self.miner_fs = MinerFsHelper(self.sandbox.get_connection())
             self.miner_fs.start()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]