Fixing logging

Change-Id: I3bd5168110985fd06faa6a4bc2fe3d713a208337
diff --git a/test/helpers.py b/test/helpers.py
new file mode 100644
index 0000000..2a07499
--- /dev/null
+++ b/test/helpers.py
@@ -0,0 +1,21 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+from xosconfig import Config
+current_dir = os.path.dirname(os.path.realpath(__file__))
+config_file = os.path.join(current_dir, 'test_config.yaml')
+config_schema = os.path.join(current_dir, '../src/xos-tosca-config-schema.yaml')
+Config.clear()
+Config.init(config_file, config_schema)
\ No newline at end of file
diff --git a/test/test_config.yaml b/test/test_config.yaml
new file mode 100644
index 0000000..698538c
--- /dev/null
+++ b/test/test_config.yaml
@@ -0,0 +1,13 @@
+name: xos-tosca
+gprc_endpoint: "xos-core"
+local_cert: /usr/local/share/ca-certificates/local_certs.crt
+logging:
+  version: 1
+  handlers:
+    console:
+      class: logging.StreamHandler
+  loggers:
+    'multistructlog':
+      handlers:
+        - console
+      level: ERROR
\ No newline at end of file
diff --git a/test/test_grpc_models_accessor.py b/test/test_grpc_models_accessor.py
index 60e86e0..a385f86 100644
--- a/test/test_grpc_models_accessor.py
+++ b/test/test_grpc_models_accessor.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
+from helpers import *
 import unittest
 from mock import patch, MagicMock
 from grpc_client.models_accessor import GRPCModelsAccessor
diff --git a/test/test_tosca_generator.py b/test/test_tosca_generator.py
index 1d560d2..5e74214 100644
--- a/test/test_tosca_generator.py
+++ b/test/test_tosca_generator.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
+from helpers import *
 import unittest
 import os
 from xosgenx.generator import XOSProcessor
diff --git a/test/test_tosca_parser.py b/test/test_tosca_parser.py
index c8ad4bf..b16817a 100644
--- a/test/test_tosca_parser.py
+++ b/test/test_tosca_parser.py
@@ -14,6 +14,7 @@
 # limitations under the License.
 
 
+from helpers import *
 import unittest
 import os
 from tosca.parser import TOSCA_Parser
diff --git a/test/test_tosca_parser_e2e.py b/test/test_tosca_parser_e2e.py
index 2d2649f..124e160 100644
--- a/test/test_tosca_parser_e2e.py
+++ b/test/test_tosca_parser_e2e.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
+from helpers import *
 import unittest
 from mock import patch, MagicMock
 from tosca.parser import TOSCA_Parser