SEBA-405 Cleanup synchronizer imports of model_accessor to globals;
Move mock modelaccessor to /tmp;
Easier mock modelaccessor configuration
Change-Id: I67a17b9a72ea69f61d92206f1b520a11c2f18d80
diff --git a/lib/xos-synchronizer/xossynchronizer/synchronizer.py b/lib/xos-synchronizer/xossynchronizer/synchronizer.py
index 9a530d7..30d3ca0 100644
--- a/lib/xos-synchronizer/xossynchronizer/synchronizer.py
+++ b/lib/xos-synchronizer/xossynchronizer/synchronizer.py
@@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
-import sys
import time
from xosconfig import Config
@@ -60,7 +58,7 @@
from backend import Backend
log_closure = self.log.bind(synchronizer_name=Config().get("name"))
- backend = Backend(log=log_closure)
+ backend = Backend(log=log_closure, model_accessor=self.model_accessor)
backend.run()