Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/doc/conftest.py   plexnet(Download)
def pytest_doctest_prepare_content(content):
    if not py.test.config.getvalue("pypy_doctests"):
        py.test.skip("specify --pypy-doctests to run doctests")
    l = []
    for line in content.split("\n"):

src/q/u/quantumcore.storages-0.009/quantumcore/storages/tests/conftest.py   quantumcore.storages(Download)
def setup_mongo():
    uri = py.test.config.getvalue("mongodb_uri")
    name = py.test.config.getvalue("mongodb_name")
 
    import pymongo
def teardown_mongo(store):
    """drop the database contents again"""
    name = py.test.config.getvalue("mongodb_name")
    store.coll.database.connection.drop_database(name)