Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 4
0
 def tearDown(self):
     db = get_mongo_client()
     db.drop_database('copo_mongo_test')