Enable tempest offline by use_custom_images=True
[functest.git] / functest / tests / unit / utils / test_decorators.py
index f8bd9a5..44448f2 100644 (file)
@@ -32,8 +32,6 @@ URL = 'file://{}'.format(FILE)
 class DecoratorsTesting(unittest.TestCase):
     # pylint: disable=missing-docstring
 
-    logging.disable(logging.CRITICAL)
-
     _case_name = 'base'
     _project_name = 'functest'
     _start_time = 1.0
@@ -65,7 +63,7 @@ class DecoratorsTesting(unittest.TestCase):
                 'pod_name': self._node_name, 'installer': self._installer_type,
                 'scenario': self._deploy_scenario, 'version': VERSION,
                 'details': {}, 'criteria': self._result}
-        return json.dumps(data)
+        return json.dumps(data, sort_keys=True)
 
     @mock.patch('{}.get_db_url'.format(functest_utils.__name__),
                 return_value='http://127.0.0.1')
@@ -131,5 +129,5 @@ class DecoratorsTesting(unittest.TestCase):
 
 
 if __name__ == "__main__":
-    logging.basicConfig()
+    logging.disable(logging.CRITICAL)
     unittest.main(verbosity=2)