[SEBA-450] (part 2)
Add tox testing support on additional XOS library modules:
- xos-api
- xos-kafka (has no tests)
- xos-migrate (has no tests)
- xos-synchronizer
Change-Id: I98195bc9747971d3515882d517affe058dd86ac5
diff --git a/lib/xos-synchronizer/xossynchronizer/event_engine.py b/lib/xos-synchronizer/xossynchronizer/event_engine.py
index 694a1a8..0455f0d 100644
--- a/lib/xos-synchronizer/xossynchronizer/event_engine.py
+++ b/lib/xos-synchronizer/xossynchronizer/event_engine.py
@@ -12,12 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import confluent_kafka
+from __future__ import absolute_import
+
import imp
import inspect
import os
import threading
import time
+
+import confluent_kafka
+
from xosconfig import Config
@@ -130,7 +134,9 @@
)
try:
- self.step(model_accessor=self.model_accessor, log=self.log).process_event(event_msg)
+ self.step(
+ model_accessor=self.model_accessor, log=self.log
+ ).process_event(event_msg)
except BaseException:
self.log.exception(
@@ -207,7 +213,9 @@
for step in self.event_steps:
if step.technology == "kafka":
- thread = XOSKafkaThread(step, [eventbus_endpoint], self.model_accessor, self.log)
+ thread = XOSKafkaThread(
+ step, [eventbus_endpoint], self.model_accessor, self.log
+ )
thread.start()
self.threads.append(thread)
else: