

def test_mongodb_client_ref():
    global mongodb_client
    mongodb = pytest.importorskip('apscheduler.jobstores.mongodb')
    mongodb_client = mongodb.MongoClient()
    try:
        mongodb.MongoDBJobStore(client=('%s:mongodb_client' % __name__))
    finally:
        mongodb_client.close()
        del mongodb_client

dataset/ETHPy150Open agronholm/apscheduler/tests/test_jobstores.py test_mongodb_client_ref/original