Exemple #1
0
def mongo_server(request):
    """ Same as mongo_server fixture, scoped for test classes.
        This is in its own file here so we can keep the fixture name the same.
    """
    svr = _mongo_server(request)
    request.cls.mongo_server = svr
    return svr
def mongo_server(request):
    """ Same as mongo_server fixture, scoped as session instead.
        This is in its own file here so we can keep the fixture name the same.
    """
    return _mongo_server(request)