コード例 #1
0
def get_sources_handle():  # this can be safely called by forked process
    mongo_client = mutil.get_mongo_client()
    collection_handle = mongo_client['SourceCollection']

    return collection_handle
コード例 #2
0
def get_submission_queue_handle(
):  # this can be safely called by forked process
    mongo_client = mutil.get_mongo_client()
    collection_handle = mongo_client['SubmissionQueueCollection']

    return collection_handle
コード例 #3
0
def get_description_handle():  # this can be safely called by forked process
    mongo_client = mutil.get_mongo_client()
    collection_handle = mongo_client['DescriptionCollection']

    return collection_handle
コード例 #4
0
ファイル: tests.py プロジェクト: ISA-tools/COPO
 def tearDown(self):
     db = get_mongo_client()
     db.drop_database('copo_mongo_test')