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/event_steps/eventstep.py b/lib/xos-synchronizer/xossynchronizer/event_steps/eventstep.py
index 9596248..84ea74b 100644
--- a/lib/xos-synchronizer/xossynchronizer/event_steps/eventstep.py
+++ b/lib/xos-synchronizer/xossynchronizer/event_steps/eventstep.py
@@ -25,12 +25,15 @@
topics = []
pattern = None
- def __init__(self, log, **kwargs):
+ def __init__(self, model_accessor, log, **kwargs):
"""
Initialize a pull step. Override this function to include any initialization. Make sure to call the original
__init__() from your method.
"""
+ # self.model_accessor can be used to create and query models
+ self.model_accessor = model_accessor
+
# self.log can be used to emit logging messages.
self.log = log