

@pytest.yield_fixture
def mongodbjobstore():
    mongodb = pytest.importorskip('apscheduler.jobstores.mongodb')
    store = mongodb.MongoDBJobStore(database='apscheduler_unittest')
    store.start(None, 'mongodb')
    (yield store)
    store.client.drop_database(store.collection.database.name)
    store.shutdown()

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