summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
diff options
context:
space:
mode:
Diffstat (limited to 'result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py')
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
index bebb9e8..e556968 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
@@ -1,10 +1,15 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
from bson.objectid import ObjectId
from concurrent.futures import ThreadPoolExecutor
-__author__ = 'serena'
-
-
def thread_execute(method, *args, **kwargs):
with ThreadPoolExecutor(max_workers=2) as executor:
result = executor.submit(method, *args, **kwargs)